select * from (7 U v7 @! }0 Z+ r. ?
select business_year x,round(cast(sum(recruit_student_count) as decimal(20,2))/1000,1) y ,'招生人数' as s ,area
8 e. m% Y I/ W% ~# t }) N& K( xfrom admissions_data_info ' e! w( j, O8 W, {; ?- v5 C! ^
group by business_year,area
" j, f1 _& j; X1 @! U+ Yunion all
! m; r4 }9 p+ _% V2 z/ Wselect business_year x,round(cast(sum(school_age_number) as decimal(20,2))/1000,1) y ,'入学缺口' as s ,area
. U5 s( |: \% J" a/ `) P& g; i/ @/ Tfrom admissions_data_info0 j! ~8 F1 F( q- A9 Z
group by business_year,area& j2 U6 r2 H7 A6 p" D
union all
! b; [2 s9 l/ Yselect business_year x,round(cast(sum(recruit_student_count) as decimal(20,2))/1000 ,1) y ,'招生人数' as s ,'所有区县' area' T: l4 F6 {8 I; J4 w
from admissions_data_info
- E0 ^. x( `1 ~" H0 lgroup by business_year
, E( J8 c7 K" h, a0 \union all# [2 h7 t. c- g, v, {1 k
select business_year x,round(cast(sum(school_age_number) as decimal(20,2))/1000,1) y ,'入学缺口' as s ,'所有区县' area
; H# l+ G" O4 i! zfrom admissions_data_info
% H, Y( X& m# I' W" l2 vgroup by business_year0 b* Z G6 b- X( h& l0 M5 `
)a
) D2 G# r5 U2 j! owhere area=:area
1 R$ P1 {2 L" [- h$ D0 d. X+ r) [+ T( {order by x |