From bf350c3b8f7906d8bc8886e14d7874a6883b9c23 Mon Sep 17 00:00:00 2001 From: wubin Date: Mon, 1 Mar 2021 11:55:50 +0800 Subject: [PATCH] update --- BigDataSql/区(县)/寄宿生情况.sql | 1 + BigDataSql/区(县)/班额情况.sql | 1 + BigDataSql/区(县)/留守儿童情况.sql | 1 + BigDataSql/区(县)/随迁子女情况.sql | 1 + 4 files changed, 4 insertions(+) create mode 100644 BigDataSql/区(县)/寄宿生情况.sql create mode 100644 BigDataSql/区(县)/班额情况.sql create mode 100644 BigDataSql/区(县)/留守儿童情况.sql create mode 100644 BigDataSql/区(县)/随迁子女情况.sql diff --git a/BigDataSql/区(县)/寄宿生情况.sql b/BigDataSql/区(县)/寄宿生情况.sql new file mode 100644 index 00000000..a2b4c1dc --- /dev/null +++ b/BigDataSql/区(县)/寄宿生情况.sql @@ -0,0 +1 @@ +select t1.stage,t1.gatherregionc,t1.sum as total,t2.sum as studentno from mv_db_base_jss_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 \ No newline at end of file diff --git a/BigDataSql/区(县)/班额情况.sql b/BigDataSql/区(县)/班额情况.sql new file mode 100644 index 00000000..a5a66f71 --- /dev/null +++ b/BigDataSql/区(县)/班额情况.sql @@ -0,0 +1 @@ +select t1.stage,t1.gatherregionc,t1.didgroup,t1.total as classno,t2.total from mv_db_base_yichangbaner_area t1 INNER JOIN mv_db_base_classcount_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 didgroup='小班额' then 1 when didgroup='大班额' then 2 when didgroup='超大班额' then 3 end; \ No newline at end of file diff --git a/BigDataSql/区(县)/留守儿童情况.sql b/BigDataSql/区(县)/留守儿童情况.sql new file mode 100644 index 00000000..edbc1ab5 --- /dev/null +++ b/BigDataSql/区(县)/留守儿童情况.sql @@ -0,0 +1 @@ +select t1.stage,t1.gatherregionc,t1.sum as total,t2.sum as studentno from mv_db_base_lset_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 \ No newline at end of file diff --git a/BigDataSql/区(县)/随迁子女情况.sql b/BigDataSql/区(县)/随迁子女情况.sql new file mode 100644 index 00000000..ef3d4a7f --- /dev/null +++ b/BigDataSql/区(县)/随迁子女情况.sql @@ -0,0 +1 @@ +SELECT t1.stage,t1.gatherregionc,t1.didgroup,t1.sum as total,t2.sum as studentno FROM mv_db_base_sqzn_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 didgroup='外省迁入' then 1 when didgroup='本省外县迁入' then 2 end \ No newline at end of file