diff --git a/Report/019中等职业学校(机构)学生分科类情况(总计).rpx b/Report/019中等职业学校(机构)学生分科类情况(总计).rpx new file mode 100644 index 00000000..8124d8df Binary files /dev/null and b/Report/019中等职业学校(机构)学生分科类情况(总计).rpx differ diff --git a/ReportSQL/019中等职业学校(机构)学生分科类情况(总计) .txt b/ReportSQL/019中等职业学校(机构)学生分科类情况(总计) .txt new file mode 100644 index 00000000..b37eb95a --- /dev/null +++ b/ReportSQL/019中等职业学校(机构)学生分科类情况(总计) .txt @@ -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; \ No newline at end of file diff --git a/ReportSQL/020中等职业学校(机构)学生分科类情况(全日制学生) .txt b/ReportSQL/020中等职业学校(机构)学生分科类情况(全日制学生) .txt new file mode 100644 index 00000000..04127dd6 --- /dev/null +++ b/ReportSQL/020中等职业学校(机构)学生分科类情况(全日制学生) .txt @@ -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(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(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; \ No newline at end of file