parent
de77462593
commit
fc083776ce
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
SELECT sbr.organizationNo ,1 as schoolTypeGroupNo,'一、高中阶段' as schoolTypeGroup,1 as schoolTypeGroupNo2,'(一)普通高中' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType
|
||||||
|
,sbr.ownertypeno ,sbr.ownerTypeGroup ,sbr.citycountrytypeno ,sbr.cityCountryGroup,sbr.structureType,sbr.populationGroup,sbr .isnation
|
||||||
|
, sbr.isCount , sum(l+m+n) as classNo
|
||||||
|
from schoolBusinessRelation sbr
|
||||||
|
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||||
|
inner join J213 as j on j.instanceid =it.instanceid
|
||||||
|
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('341','342','345','349') 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
|
||||||
|
order by sbr.businessTypeNo;
|
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
union all
|
||||||
|
|
||||||
|
--高中
|
||||||
|
order by schoolTypeGroupNo,schoolTypeGroupNo2,
|
||||||
|
case
|
||||||
|
when businessType ='高级中学' then 1
|
||||||
|
when businessType ='完全中学' then 2
|
||||||
|
when businessType ='十二年一贯制学校' then 3
|
||||||
|
when businessType ='中等技术学校' then 4
|
||||||
|
when businessType ='成人中等专业学校' then 5
|
||||||
|
when businessType ='职业高中学校' then 6
|
||||||
|
when businessType ='其他机构(班)' then 7
|
||||||
|
end
|
||||||
|
|
||||||
|
--义务
|
||||||
|
order by schoolTypeGroupNo,schoolTypeGroupNo2,
|
||||||
|
case
|
||||||
|
when businessType ='小学' then 1
|
||||||
|
when businessType ='初级中学' then 2
|
||||||
|
when businessType ='职业初中' then 3
|
||||||
|
when businessType ='九年一贯制学校' then 4
|
||||||
|
when businessType ='十二年一贯制学校' then 5
|
||||||
|
when businessType ='完全中学' then 6
|
||||||
|
end
|
Loading…
Reference in new issue