master
wubin 4 years ago
parent 5229769fc3
commit 7045da3645

@ -1 +1 @@
select stage,citycountrygroup,zhandimianjino from mv_db_base_banxuetiaojian
select stage,citycountrygroup,zhandimianjino as total from mv_db_base_banxuetiaojian ORDER BY CASE WHEN stage = '小学' THEN 1 WHEN stage = '初中' THEN 2 WHEN stage = '高中' THEN 3 END,CASE WHEN citycountrygroup = '城区' THEN 1 WHEN citycountrygroup = '镇区' THEN 2 WHEN citycountrygroup = '乡村' THEN 3 END

@ -1,4 +1 @@
--宿
select stage,citycountrygroup,jisuno from mv_db_base_student
--宿
select stage,citycountrygroup,xueshengsushe from mv_db_base_banxuetiaojian
select t1.stage,t1.citycountrygroup,t1.jisuno,t2.xueshengsushe from mv_db_base_student t1 inner join mv_db_base_banxuetiaojian t2 on t1.stage=t2.stage and t1.citycountrygroup=t2.citycountrygroup ORDER BY CASE WHEN t1.stage = '小学' THEN 1 WHEN t1.stage = '初中' THEN 2 WHEN t1.stage = '高中' THEN 3 END,CASE WHEN t1.citycountrygroup = '城区' THEN 1 WHEN t1.citycountrygroup = '镇区' THEN 2 WHEN t1.citycountrygroup = '乡村' THEN 3 END

@ -1 +1 @@
select stage,citycountrygroup,jiaoxuejiaofuno from mv_db_base_banxuetiaojian
select stage,citycountrygroup,jiaoxuejiaofuno as total from mv_db_base_banxuetiaojian ORDER BY CASE WHEN stage = '小学' THEN 1 WHEN stage = '初中' THEN 2 WHEN stage = '高中' THEN 3 END,CASE WHEN citycountrygroup = '城区' THEN 1 WHEN citycountrygroup = '镇区' THEN 2 WHEN citycountrygroup = '乡村' THEN 3 END

@ -1 +1 @@
select stage,citycountrygroup,xiaosheno from mv_db_base_banxuetiaojian
select stage,citycountrygroup,xiaosheno as total from mv_db_base_banxuetiaojian ORDER BY CASE WHEN stage = '小学' THEN 1 WHEN stage = '初中' THEN 2 WHEN stage = '高中' THEN 3 END,CASE WHEN citycountrygroup = '城区' THEN 1 WHEN citycountrygroup = '镇区' THEN 2 WHEN citycountrygroup = '乡村' THEN 3 END

@ -1 +1 @@
select stage,citycountrygroup,yundongchangdino from mv_db_base_banxuetiaojian
select stage,citycountrygroup,yundongchangdino as total from mv_db_base_banxuetiaojian ORDER BY CASE WHEN stage = '小学' THEN 1 WHEN stage = '初中' THEN 2 WHEN stage = '高中' THEN 3 END,CASE WHEN citycountrygroup = '城区' THEN 1 WHEN citycountrygroup = '镇区' THEN 2 WHEN citycountrygroup = '乡村' THEN 3 END
Loading…
Cancel
Save