parent
c58f8edce9
commit
b2be53b31d
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@
|
|||||||
|
--did
|
||||||
|
--总 计1
|
||||||
|
--女2
|
||||||
|
--受过特教专业培训3
|
||||||
|
|
||||||
|
|
||||||
|
SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 as schoolTypeGroupNo2,'' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||||
|
, sbr.isCount, sum( e+f+g+h+i) as jzgNo,sum(e) as teacherNo,sum(e),sum(f), sum(g), sum(h), sum(i), sum(j),sum(i)
|
||||||
|
, sum(j),sum(k),sum(l),sum(m),sum(n),sum(o),did
|
||||||
|
from schoolBusinessRelation sbr
|
||||||
|
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||||
|
inner join J425 as j on j.instanceid =it.instanceid and j.did in (1,2,3)
|
||||||
|
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
|
||||||
|
order by sbr.businessTypeNo;
|
@ -0,0 +1,35 @@
|
|||||||
|
--did
|
||||||
|
--一、教学及辅助用房 sum(5-9)
|
||||||
|
--普通教室 5
|
||||||
|
--专用教室 6
|
||||||
|
--实验室 7
|
||||||
|
--微机室 8
|
||||||
|
--图书室 9
|
||||||
|
--二、行政办公用房10
|
||||||
|
--其中:教师办公室 11
|
||||||
|
--三、生活用房 12
|
||||||
|
--四、其他用房 13
|
||||||
|
|
||||||
|
|
||||||
|
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,1 as schoolTypeGroupNo2,'(一)普通高中' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||||
|
,sbr.citycountrytypeno ,sbr.cityCountryGroup
|
||||||
|
, 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 between 4 and 13)
|
||||||
|
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
|
||||||
|
order by sbr.businessTypeNo;
|
||||||
|
|
||||||
|
--did
|
||||||
|
--2、危房
|
||||||
|
--3、新增
|
||||||
|
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,1 as schoolTypeGroupNo2,'(一)普通高中' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||||
|
,sbr.citycountrytypeno ,sbr.cityCountryGroup
|
||||||
|
, 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))
|
||||||
|
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
|
||||||
|
order by sbr.businessTypeNo;
|
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 as schoolTypeGroupNo2,'' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||||
|
, 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)
|
||||||
|
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
|
||||||
|
order by sbr.businessTypeNo;
|
Loading…
Reference in new issue