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
1.4 KiB
1 line
1.4 KiB
select t1.stage,t1.gatherregionc,t1.didgroup,t1.total,t2.sum as teacherno from mv_db_base_zrjsnl_area t1 INNER JOIN mv_db_base_student_area t2 on t1.stage=t2.stage and t1.gatherregionc=t2.gatherregionc order by case when t1.stage='小学' then 1 when t1.stage='初中' then 2 when t1.stage='高中' then 3 end,case when t1.gatherregionc='南关区' then 1 when t1.gatherregionc='宽城区' then 2 when t1.gatherregionc='朝阳区' then 3 when t1.gatherregionc='二道区' then 4 when t1.gatherregionc='绿园区' then 5 when t1.gatherregionc='双阳区' then 6 when t1.gatherregionc='九台区' then 7 when t1.gatherregionc='直属代管' then 8 when t1.gatherregionc='新区代管' then 9 when t1.gatherregionc='经开区代管' then 10 when t1.gatherregionc='净月区代管' then 11 when t1.gatherregionc='汽车区代管' then 12 when t1.gatherregionc='省属代管' then 13 when t1.gatherregionc='莲花山度假区代管' then 14 when t1.gatherregionc='农安县' then 15 when t1.gatherregionc='榆树市' then 16 when t1.gatherregionc='德惠市' then 17 end,case when t1.didgroup='24岁及以下' then 1 when t1.didgroup='25-29岁' then 2 when t1.didgroup='30-34岁' then 3 when t1.didgroup='35-39岁' then 4 when t1.didgroup='40-44岁' then 5 when t1.didgroup='45-49岁' then 6 when t1.didgroup='50-54岁' then 7 when t1.didgroup='55-59岁' then 8 when t1.didgroup='60岁及以上' then 9 end |