group by
の列を囲む括弧を削除します :
Select *, CASE WHEN age>18 then 'Adult' ELSE 'MINOR' end as category
from student
order by category, name;
オンラインの例: https://rextester.com/BHQ36816
group by
の列を囲む括弧を削除します :
Select *, CASE WHEN age>18 then 'Adult' ELSE 'MINOR' end as category
from student
order by category, name;
オンラインの例: https://rextester.com/BHQ36816