Usuń te nawiasy wokół kolumn dla group by
:
Select *, CASE WHEN age>18 then 'Adult' ELSE 'MINOR' end as category
from student
order by category, name;
Przykład online:https://rextester.com/BHQ36816
Usuń te nawiasy wokół kolumn dla group by
:
Select *, CASE WHEN age>18 then 'Adult' ELSE 'MINOR' end as category
from student
order by category, name;
Przykład online:https://rextester.com/BHQ36816