diff --git a/Report/044特殊教育基本情况.rpx b/Report/044特殊教育基本情况.rpx index afc32418..38ac97c1 100644 Binary files a/Report/044特殊教育基本情况.rpx and b/Report/044特殊教育基本情况.rpx differ diff --git a/Report/045特殊教育学校基本情况.rpx b/Report/045特殊教育学校基本情况.rpx new file mode 100644 index 00000000..88b30c98 Binary files /dev/null and b/Report/045特殊教育学校基本情况.rpx differ diff --git a/Report/046特殊教育学校教职工数.rpx b/Report/046特殊教育学校教职工数.rpx new file mode 100644 index 00000000..3a10e040 Binary files /dev/null and b/Report/046特殊教育学校教职工数.rpx differ diff --git a/ReportSQL/045特殊教育学校基本情况 .txt b/ReportSQL/045特殊教育学校基本情况 .txt new file mode 100644 index 00000000..10b5f658 --- /dev/null +++ b/ReportSQL/045特殊教育学校基本情况 .txt @@ -0,0 +1,39 @@ +--学校数 + 学生数 +SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 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(f) as zhaoshengNo,sum(I + J + K + L + M + N + O + P + Q + R + S + T + U + V) as zaixiaoNo,sum(e) as biyeNo,sum(h) as nvNo, +sum(i),sum(j),sum(k),sum(l),sum(m),sum(n),sum(o),sum(p),sum(q),sum(r),sum(s),sum(t),sum(u),sum(v) +from schoolBusinessRelation sbr +inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno +inner join J315 as j on j.instanceid =it.instanceid and did between 16 and 22 +where sbr.gatherRegionB ='长春市' 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; + +--did +-- 女 2 +-- 少数民族3 +-- 寄宿生4 +-- 职业技术班5 + +SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 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(f) as zhaoshengNo,sum(I + J + K + L + M + N + O + P + Q + R + S + T + U + V) as zaixiaoNo,sum(e) as biyeNo,sum(h) as nvNo, +sum(i),sum(j),sum(k),sum(l),sum(m),sum(n),sum(o),sum(p),sum(q),sum(r),sum(s),sum(t),sum(u),sum(v),did +from schoolBusinessRelation sbr +inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno +inner join J315 as j on j.instanceid =it.instanceid and did in(2,3,4,5) +where sbr.gatherRegionB ='长春市' 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,did +order by sbr.businessTypeNo; + +--班级数 +SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 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(e+f+g+h+I + J + K + L + M + N + O + P + Q +R) as classNo +from schoolBusinessRelation sbr +inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno +inner join J214 as j on j.instanceid =it.instanceid and did in(2,3,4,5,6,7,8) +where sbr.gatherRegionB ='长春市' 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; diff --git a/ReportSQL/046特殊教育学校教职工数 .txt b/ReportSQL/046特殊教育学校教职工数 .txt new file mode 100644 index 00000000..255a31bf --- /dev/null +++ b/ReportSQL/046特殊教育学校教职工数 .txt @@ -0,0 +1,14 @@ +--did +--总 计1 +--女2 +--少数民族3 +--在编人员4 + +SELECT sbr.organizationNo ,3 as schoolTypeGroupNo,'三、特殊教育' as schoolTypeGroup,0 as schoolTypeGroupNo2,'' as schoolTypeGroup2 ,sbr.businessTypeNo,sbr.businessType +, sbr.isCount, sum( e+f+g+h) as jzgNo,sum(e) as teacherNo,sum(e),sum(f), sum(g), sum(h), sum(i), sum(j),did +from schoolBusinessRelation sbr +inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno +inner join J413 as j on j.instanceid =it.instanceid and j.did in (1,2,3,4) +where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('511','512','513','514') 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; \ No newline at end of file diff --git a/ReportSQL/无标题-30.txt b/ReportSQL/无标题-30.txt index bb08dbeb..390e6815 100644 --- a/ReportSQL/无标题-30.txt +++ b/ReportSQL/无标题-30.txt @@ -25,4 +25,6 @@ when businessType ='完全中学' then 6 end -if(value()=="女",space(2)+"其中:"+value(),space(8)+value()) \ No newline at end of file +if(value()=="女",space(2)+"其中:"+value(),space(8)+value()) + +if(value()==0,"") \ No newline at end of file