You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
--did:
|
|
--女2
|
|
--文化基础课 3
|
|
--农林牧渔类5
|
|
--资源环境类6
|
|
--能源与新能源类7
|
|
--土木水利类8
|
|
--加工制造类9
|
|
--石油化工类10
|
|
--轻纺食品类11
|
|
--交通运输类12
|
|
--信息技术类13
|
|
--医药卫生类14
|
|
--休闲保健类15
|
|
--财经商贸类16
|
|
--旅游服务类17
|
|
--文化艺术类18
|
|
--体育与健身19
|
|
--教育类20
|
|
--司法服务类21
|
|
--公共管理与服务类22
|
|
--其他23
|
|
--实习指导课24
|
|
|
|
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.isCount ,sum(g+h+i+j+k) as teacherNo,sum(g) as teacherNo2,sum(h) as teacherNo3,sum(i) as teacherNo4,sum(j) as teacherNo5,sum(k) as teacherNo6,sum(f) as teacherNo7,did
|
|
from schoolBusinessRelation sbr
|
|
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
|
inner join Z424 as j on j.instanceid =it.instanceid and j.did between 2 and 24
|
|
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,did
|
|
order by sbr.businessTypeNo;
|
|
|