|
|
--did:
|
|
|
--13、正高级
|
|
|
--14、副高级
|
|
|
--15、中级
|
|
|
--16、助理级
|
|
|
--17、员级
|
|
|
--18、未定职级
|
|
|
|
|
|
SELECT sbr.organizationNo ,2 as schoolTypeGroupNo,'二、义务教育' as schoolTypeGroup,2 as schoolTypeGroupNo2,'(二)初中阶段' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
|
|
,sbr.ownertypeno ,sbr.ownerTypeGroup ,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.structureType,sbr.populationGroup,sbr .isnation ,sbr.gatherregionc ,va.region_no
|
|
|
, sbr.isCount , sum (F + G + H + I +j+k+l+ M + N ) as teacherNO,j.did,sum(e) as nv_no
|
|
|
from schoolBusinessRelation sbr
|
|
|
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
|
|
|
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.ownertypeno ,sbr.ownerTypeGroup ,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.structureType,sbr.populationGroup,sbr .isnation,sbr.gatherregionc ,va.region_no,j.did
|
|
|
order by sbr.businessTypeNo;
|
|
|
|
|
|
--did
|
|
|
--女3
|
|
|
--少数民族4
|
|
|
--研究生毕业5
|
|
|
--本科毕业6
|
|
|
--专科毕业7
|
|
|
--高中阶段毕业8
|
|
|
--高中阶段以下毕业9
|
|
|
|
|
|
SELECT sbr.organizationNo ,2 as schoolTypeGroupNo,'二、义务教育' as schoolTypeGroup,2 as schoolTypeGroupNo2,'(二)初中阶段' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
|
|
,sbr.ownertypeno ,sbr.ownerTypeGroup ,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.structureType,sbr.populationGroup,sbr .isnation ,sbr.gatherregionc ,va.region_no
|
|
|
, sbr.isCount , sum (F + G + H + I + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z + AC + AD) as teacherNO2 ,did
|
|
|
from schoolBusinessRelation sbr
|
|
|
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
|
|
inner join J424 as j on j.instanceid =it.instanceid and did in (5,6,7,8,9)
|
|
|
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
|
|
|
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,sbr.ownertypeno ,sbr.ownerTypeGroup ,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.structureType,sbr.populationGroup,sbr .isnation,sbr.gatherregionc ,va.region_no ,did
|
|
|
order by sbr.businessTypeNo; |