|
|
--did
|
|
|
--一、教学及辅助用房 (5+6+...+10)
|
|
|
--教室 5
|
|
|
--实验室 6
|
|
|
--图书室 7
|
|
|
--微机室 8
|
|
|
--语音室 9
|
|
|
--体育馆 10
|
|
|
--二、行政办公用房 11
|
|
|
--其中:教师办公室 12
|
|
|
--三、生活用房 (14+15+...+19)
|
|
|
--教工宿舍 14
|
|
|
--其中:教师周转宿舍 15
|
|
|
--学生宿舍 16
|
|
|
--食堂 17
|
|
|
--厕所 18
|
|
|
--其他 19
|
|
|
--四、其他用房 20
|
|
|
--2、危房
|
|
|
--3、新增
|
|
|
|
|
|
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(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 J512 as j on j.instanceid =it.instanceid and did in (2,3,5,6,7,8,9,10,11,12,14,16,17,18,19,20)
|
|
|
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,did,sbr.gatherregionc ,va.region_no
|
|
|
order by sbr.businessTypeNo;
|
|
|
|