|
请楼主试试这个SQL语句,我这里测试通过了:
select "1月" as 月份, 部门,(0+离司人数) as 离开人数 from [1月$] union all
select "2月" as 月份, 部门,(0+离司人数) as 离开人数 from [2月$] union all
select "3月" as 月份, 部门,(0+离司人数) as 离开人数 from [3月$] union all
select "4月" as 月份, 部门,(0+离司人数) as 离开人数 from [4月$] union all
select "5月" as 月份, 部门,(0+离司人数) as 离开人数 from [5月$] union all
select "6月" as 月份, 部门,(0+离司人数) as 离开人数 from [6月$] union all
select "7月" as 月份, 部门,(0+离司人数) as 离开人数 from [7月$] union all
select "8月" as 月份, 部门,(0+离司人数) as 离开人数 from [8月$] union all
select "9月" as 月份, 部门,(0+离司人数) as 离开人数 from [9月$] union all
select "10月" as 月份, 部门,(0+离司人数) as 离开人数 from [10月$] union all
select "11月" as 月份, 部门,(0+离司人数) as 离开人数 from [11月$] union all
select "12月" as 月份, 部门,(0+离司人数) as 离开人数 from [12月$] |
|