Prøv forespørgslen nedenfor;-
select * from
(select cars, item,value from carTable)
pivot(max(value) for item in ('wheels', 'color', 'price'))
Prøv forespørgslen nedenfor;-
select * from
(select cars, item,value from carTable)
pivot(max(value) for item in ('wheels', 'color', 'price'))