Merge branch 'master' of http://10.10.14.250:3000/huanghai/dsMin
commit
66ceb89535
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,5 @@
|
||||
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,2 as schoolTypeGroupNo2,'(二)中等职业学校' as schoolTypeGroup2 ,sbr.businessTypeNo
|
||||
, case when sbr.businessTypeNo in ('369') then '其他机构(班)' when sbr.businessTypeNo in ('368') then '附设中职班' else sbr.businessType end as businessType
|
||||
,sbr.ownertypeno ,sbr.ownerTypeGroup ,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.structureType,sbr.populationGroup,sbr .isnation , isCount
|
||||
from schoolBusinessRelation sbr where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('362','364','365','361','363','368','369') and sbr.isLastYearCancel =0
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,23 @@
|
||||
--11 普通中专
|
||||
--14 全日制 成人中专
|
||||
--17 非全日制 成人中专
|
||||
--20 职业高中
|
||||
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(h) as zhaoshengNo,sum(i) as zhaoshengNo2,sum(j) as zhaoshengNo3,sum(k) as zhaoshengNo4
|
||||
,sum(m+n+o+p) as zaixiaoNo,sum(m) as zaixiaoNo2,sum(n) as zaixiaoNo3,sum(o) as zaixiaoNo4,sum(p) as zaixiaoNo5
|
||||
,sum(f) as biyeNo,sum(g) as biyeNo2,sum(q) as biyeNo3,sum(r) as biyeNo4
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z311 as j on j.instanceid =it.instanceid and j.did in (11,14,17,20)
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('361','362','363','364','365','368','369') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount
|
||||
order by sbr.businessTypeNo;
|
||||
|
||||
--培训机构毕业
|
||||
SELECT sum(K+L+M) as biyeNo
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z351 as j on j.instanceid =it.instanceid and DID in (5,6,7,12,15)
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('361','362','363','364','365','368','369') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
|
||||
;
|
@ -0,0 +1,21 @@
|
||||
--全体 + 专业
|
||||
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
|
||||
, majorType,majorTypeno, sbr.isCount ,sum(h) as zhaoshengNo,sum(i) as zhaoshengNo2,sum(j) as zhaoshengNo3,sum(m+n+o+p) as zaixiaoNo,sum(f) as biyeNo,sum(g) as biyeNo2,sum(q) as biyeNo3
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z311 as j on j.instanceid =it.instanceid and j.did in (11,14,17,20)
|
||||
left join codeProfessionMajor on j.D = codeProfessionMajor.majorNo
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('361','362','363','364','365','368','369') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,majorType,majorTypeno
|
||||
order by sbr.businessTypeNo;
|
||||
|
||||
--女
|
||||
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
|
||||
, majorType,majorTypeno, sbr.isCount ,sum(h) as zhaoshengNo,sum(i) as zhaoshengNo2,sum(j) as zhaoshengNo3,sum(m+n+o+p) as zaixiaoNo,sum(f) as biyeNo,sum(g) as biyeNo2,sum(q) as biyeNo3
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z311 as j on j.instanceid =it.instanceid and j.did in (10,13,16,19)
|
||||
left join codeProfessionMajor on j.D = codeProfessionMajor.majorNo
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('361','362','363','364','365','368','369') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,majorType,majorTypeno
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,21 @@
|
||||
--全体 + 专业
|
||||
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
|
||||
, majorType,majorTypeno, sbr.isCount ,sum(h) as zhaoshengNo,sum(i) as zhaoshengNo2,sum(j) as zhaoshengNo3,sum(m+n+o+p) as zaixiaoNo,sum(f) as biyeNo,sum(g) as biyeNo2,sum(q) as biyeNo3
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z311 as j on j.instanceid =it.instanceid and j.did in (14)
|
||||
left join codeProfessionMajor on j.D = codeProfessionMajor.majorNo
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('361','362','363','364','365','368','369') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,majorType,majorTypeno
|
||||
order by sbr.businessTypeNo;
|
||||
|
||||
--女
|
||||
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
|
||||
, majorType,majorTypeno, sbr.isCount ,sum(h) as zhaoshengNo,sum(i) as zhaoshengNo2,sum(j) as zhaoshengNo3,sum(m+n+o+p) as zaixiaoNo,sum(f) as biyeNo,sum(g) as biyeNo2,sum(q) as biyeNo3
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z311 as j on j.instanceid =it.instanceid and j.did in (13)
|
||||
left join codeProfessionMajor on j.D = codeProfessionMajor.majorNo
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('361','362','363','364','365','368','369') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.organizationNo,sbr.businessTypeNo,sbr.businessType ,sbr.isCount,majorType,majorTypeno
|
||||
order by sbr.businessTypeNo;
|
@ -0,0 +1,34 @@
|
||||
--did:
|
||||
--正高级3
|
||||
--副高级4
|
||||
--中级5
|
||||
--助理级6
|
||||
--员级 无
|
||||
--未定职级7
|
||||
--女 2
|
||||
|
||||
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+l) as jzgNo,sum(g) as teacherNo,sum(h) as teacherNo2,sum(i) as teacherNo3,sum(j) as teacherNo4,sum(k) as teacherNo5,sum(l) as teacherNo6,sum(m) as teacherNo7,did
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z411 as j on j.instanceid =it.instanceid and j.did in (2,3,4,5,6,7)
|
||||
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;
|
||||
|
||||
--聘任制
|
||||
--正高级10
|
||||
--副高级11
|
||||
--中级12
|
||||
--助理级13
|
||||
--员级 无
|
||||
--未定职级14
|
||||
--女 9
|
||||
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+l) as jzgNo,sum(g) as teacherNo,sum(h) as teacherNo2,sum(i) as teacherNo3,sum(j) as teacherNo4,sum(k) as teacherNo5,sum(l) as teacherNo6,sum(m) as teacherNo7,did
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join Z411 as j on j.instanceid =it.instanceid and j.did in (9,10,11,12,13,14)
|
||||
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;
|
@ -0,0 +1,33 @@
|
||||
--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;
|
||||
|
Loading…
Reference in new issue