SQL - CASE Expressions
Given the table
Employees with column department having values 'HR', 'Sales', 'IT', what will be the order of departments after running this query?SELECT department FROM Employees ORDER BY CASE department WHEN 'Sales' THEN 1 WHEN 'HR' THEN 2 ELSE 3 END;