round1
select 95 as score
union all
select 85
union all
select 100
round2
select 'star' as biz,95 as score
union all
select 'moon',85
union all
select 'sun',100
round3
select case when biz='star' then score end as star,
case when biz='moon' then score end as moon,
case when biz='sun' then score end as sun
from(
select 'star' as biz,95 as score
union all
select 'moon',85
union all
select 'sun',100) a
round4
select max(case when biz='star' then score end) as star,
max(case when biz='moon' then score end) as moon,
max(case when biz='sun' then score end) as sun
from(
select 'star' as biz,95 as score
union all
select 'moon',85
union all
select 'sun',100) a