- select
- SUM(case name when '藏族' then peopleCount end) as [藏族],
- SUM(case name when '朝鲜族' then peopleCount end) as [朝鲜族],
- SUM(case name when '汉族' then peopleCount end) as [汉族],
- SUM(case name when '苗族' then peopleCount end) as [苗族],
- SUM(case name when '维吾尔族' then peopleCount end) as [维吾尔族]
- from Minzu
复制代码 |