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.

9 lines
250 B

select stage,didgroup,sum(zaixiaono) as total from mv_db_sqznqk GROUP BY didgroup,stage
order by
(case when stage='小学' then 1
when stage='初中' then 2
when stage='高中' then 3
end)
select sum(zaixiaono) as total from mv_db_base_student