You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
393 B
1 line
393 B
select * from (select stage,unnest(array['招生数', '在校生数', '毕业生数']) AS didgroup, unnest(array[sum(zhaoshengno) ,sum(zaixiaono),sum(biyeno)]) as total from mv_db_base_student GROUP BY stage ) t order by case when stage='小学' then 1 when stage='初中' then 2 when stage='高中' then 3 end,case when didgroup='招生数' then 1 when didgroup='在校生数' then 2 when didgroup='高中' then 3 end |