代码语言:javascript复制
select
min(case when continent='America' then name end) America,
min(case when continent='Asia' then name end)Asia,
min(case when continent='Europe' then name end)Europe
from(
select *,row_number() over(partition by continent order by name ) r
from student
)A
group by r