parent
f8203cc3fb
commit
b414d1e27f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
|
||||
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,1 as schoolTypeGroupNo2,'(一)普通高中' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||
,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(d) as d,sum(e) as e, sum(f) as f,sum(g) as g , sum(h) as h,sum(i) as i, sum(j) as j,sum(k) as k , sum(l) as l,sum(m) as m, sum(n) as n,sum(o) as o , sum(p) as p,sum(q) as q
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J522 as j on j.instanceid =it.instanceid
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('341','342','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,13 @@
|
||||
--did
|
||||
--学校产权 1
|
||||
--非学校 独立使用 3
|
||||
--非学习 共同使用 4
|
||||
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,2 as schoolTypeGroupNo2,'(二)中等职业学校' as schoolTypeGroup2 ,sbr.businessTypeNo,case when sbr.businessTypeNo in ('368','369') then '其他机构(班)' else sbr.businessType end as businessType ,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(d) as d,sum(e) as e, sum(f) as f,sum(g) as g , sum(h) as h,sum(i) as i, sum(j) as j,sum(k) as k , sum(l) as l,sum(m) as m, sum(n) as n,sum(o) as o , sum(p) as p
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z521 as j on j.instanceid =it.instanceid and did in (1)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('362','364','365','369','361','363') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,13 @@
|
||||
--did
|
||||
--学校产权 1
|
||||
--非学校 独立使用 3
|
||||
--非学习 共同使用 4
|
||||
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,2 as schoolTypeGroupNo2,'(二)中等职业学校' as schoolTypeGroup2 ,sbr.businessTypeNo,case when sbr.businessTypeNo in ('368','369') then '其他机构(班)' else sbr.businessType end as businessType ,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(d) as d,sum(e) as e, sum(f) as f,sum(g) as g , sum(h) as h,sum(i) as i, sum(j) as j,sum(k) as k , sum(l) as l,sum(m) as m, sum(n) as n,sum(o) as o , sum(p) as p
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z521 as j on j.instanceid =it.instanceid and did in (3)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('362','364','365','369','361','363') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,11 @@
|
||||
|
||||
SELECT sbr.organizationNo ,2 as schoolTypeGroupNo,'二、义务教育' as schoolTypeGroup,2 as schoolTypeGroupNo2,'(二)初中阶段' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||
,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(d) as d,sum(e) as e, sum(f) as f,sum(g) as g , sum(h) as h,sum(i) as i, sum(j) as j,sum(k) as k , sum(l) as l,sum(m) as m, sum(n) as n,sum(o) as o , sum(p) as p,sum(q) as q
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J522 as j on j.instanceid =it.instanceid
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','321') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,11 @@
|
||||
|
||||
SELECT sbr.organizationNo ,2 as schoolTypeGroupNo,'二、义务教育' as schoolTypeGroup,1 as schoolTypeGroupNo2,'(一)小学' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||
,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(d) as d,sum(e) as e, sum(f) as f,sum(g) as g , sum(h) as h,sum(i) as i, sum(j) as j,sum(k) as k , sum(l) as l,sum(m) as m, sum(n) as n,sum(o) as o , sum(p) as p,sum(q) as q
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J522 as j on j.instanceid =it.instanceid
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('211') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,24 @@
|
||||
--did
|
||||
--一、教学及辅助用房 sum(5-9)
|
||||
--普通教室 5
|
||||
--专用教室 6
|
||||
--实验室 7
|
||||
--微机室 8
|
||||
--图书室 9
|
||||
--二、行政办公用房10
|
||||
--其中:教师办公室 11
|
||||
--三、生活用房 12
|
||||
--四、其他用房 13
|
||||
--2、危房
|
||||
--3、新增
|
||||
|
||||
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,1 as schoolTypeGroupNo2,'(一)普通高中' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||
,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(F + G + H + I) as xiaosheNo,did
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J513 as j on j.instanceid =it.instanceid and did in (2,3,5,6,7,8,9,10,11,12,13)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('511','512','513','514') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,did,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 as schoolTypeGroupNo2,'' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType ,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount,sum(d), sum(e),sum(f), sum(g)
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J521 as j on j.instanceid =it.instanceid and j.did in (1)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('511','512','513','514') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,did,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,26 @@
|
||||
--did
|
||||
--一、教学及辅助用房 sum(5,6,7,8,9)
|
||||
--活动室 5
|
||||
--卫生间 6
|
||||
--睡眠室 7
|
||||
--保健室 8
|
||||
--图书室 9
|
||||
--二、行政办公用房 10
|
||||
--其中:教师办公室 11
|
||||
--三、生活用房 12
|
||||
--其中:厨房 13
|
||||
--四、其他用房 14
|
||||
--2、危房
|
||||
--3、新增
|
||||
|
||||
SELECT sbr.organizationNo ,5 as schoolTypeGroupNo,'五、学前教育' as schoolTypeGroup,0 as schoolTypeGroupNo2,'' as schoolTypeGroup2,sbr.businessTypeNo,sbr.businessType
|
||||
,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(F + G + H + I) as xiaosheNo,did
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J511 as j on j.instanceid =it.instanceid and did in (2,3,5,6,7,8,9,10,12,14)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('111') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,did,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
||||
|
@ -0,0 +1,11 @@
|
||||
|
||||
SELECT sbr.organizationNo ,5 as schoolTypeGroupNo,'五、学前教育' as schoolTypeGroup,0 as schoolTypeGroupNo2,'' as schoolTypeGroup2,sbr.businessTypeNo,sbr.businessType
|
||||
,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
, sbr.isCount , sum(d) as d,sum(e) as e, sum(f) as f,sum(g) as g , sum(h) as h,sum(i) as i, sum(j) as j,sum(k) as k
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J521 as j on j.instanceid =it.instanceid
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('111') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.gatherregionc ,va.region_no
|
||||
order by sbr.businessTypeNo;
|
Loading…
Reference in new issue