I'm new here. I'm not very skilled in SQL. I hope someone can help me
I want to make a query to the same column (star_result) but separate the results depending on whether the column rating_item_id has a value 2 (Importance) or 3 (Urgency)
SELECT star_result AS Importancia,star_result AS Urgencia
FROM ycdxw_mrp_rating_result
WHERE rating_item_id = "2" OR rating_item_id = "3"
The problem is that I do not know how I can assign in WHERE the 2 to the alias Importance and the 3 to the alias Urgency. I get both results in the two columns:
Thank you very much from now ...