Fjern disse parenteser omkring kolonnerne for group by
:
Select *, CASE WHEN age>18 then 'Adult' ELSE 'MINOR' end as category
from student
order by category, name;
Online eksempel:https://rextester.com/BHQ36816
Fjern disse parenteser omkring kolonnerne for group by
:
Select *, CASE WHEN age>18 then 'Adult' ELSE 'MINOR' end as category
from student
order by category, name;
Online eksempel:https://rextester.com/BHQ36816