From 416a1d4b4c09e952c4d40e95e2b470080402b2d1 Mon Sep 17 00:00:00 2001 From: wubin Date: Sat, 6 Feb 2021 08:09:03 +0800 Subject: [PATCH] update --- BigDataSql/城乡类型按学段师生比.sql | 4 ++-- BigDataSql/学校教师学生总数.sql | 1 + BigDataSql/学生情况.sql | 1 + BigDataSql/留守儿童情况.sql | 1 + BigDataSql/随迁子女性情况.txt | 2 ++ 5 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 BigDataSql/学校教师学生总数.sql create mode 100644 BigDataSql/学生情况.sql create mode 100644 BigDataSql/留守儿童情况.sql create mode 100644 BigDataSql/随迁子女性情况.txt diff --git a/BigDataSql/城乡类型按学段师生比.sql b/BigDataSql/城乡类型按学段师生比.sql index 8471a745..bfdf4b2a 100644 --- a/BigDataSql/城乡类型按学段师生比.sql +++ b/BigDataSql/城乡类型按学段师生比.sql @@ -13,7 +13,7 @@ select t1.a as stage,t1.citycountrygroup,sum(c1) as studentNo,sum(c2) as teacher from schoolBusinessRelation sbr inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno inner join J313 as j on j.instanceid =it.instanceid and j.did in (1,36,37,38,39,40,41,42,43,44) - where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','319','321','341','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019 + where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','319','341','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019 group by sbr.cityCountryGroup union all @@ -48,7 +48,7 @@ select t1.a as stage,t1.citycountrygroup,sum(c1) as studentNo,sum(c2) as teacher inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno inner join J422 as j on j.instanceid =it.instanceid and did in (13,14,15,16,17,18) inner join v_areainfo va on va.region_name =sbr.gatherregionc - where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','321','341','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019 + where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','341','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019 group by sbr.cityCountryGroup diff --git a/BigDataSql/学校教师学生总数.sql b/BigDataSql/学校教师学生总数.sql new file mode 100644 index 00000000..798762c0 --- /dev/null +++ b/BigDataSql/学校教师学生总数.sql @@ -0,0 +1 @@ +select * from mv_db_xjxzs \ No newline at end of file diff --git a/BigDataSql/学生情况.sql b/BigDataSql/学生情况.sql new file mode 100644 index 00000000..9bc0cdc1 --- /dev/null +++ b/BigDataSql/学生情况.sql @@ -0,0 +1 @@ +select * from mv_db_base_student \ No newline at end of file diff --git a/BigDataSql/留守儿童情况.sql b/BigDataSql/留守儿童情况.sql new file mode 100644 index 00000000..64db969d --- /dev/null +++ b/BigDataSql/留守儿童情况.sql @@ -0,0 +1 @@ +select * from mv_db_lsetqk \ No newline at end of file diff --git a/BigDataSql/随迁子女性情况.txt b/BigDataSql/随迁子女性情况.txt new file mode 100644 index 00000000..21b02690 --- /dev/null +++ b/BigDataSql/随迁子女性情况.txt @@ -0,0 +1,2 @@ +select didgroup,sum(zaixiaono) from mv_db_sqznqk GROUP BY didgroup +select sum(zaixiaono) from mv_db_base_student