You are viewing a single comment's thread. Return to all comments →
SELECT [Doctor], [Professor], [Singer], [Actor] FROM (SELECT [name] ,[occupation] ,ROW_NUMBER() over (PARTITION by [occupation] order by [name] ) as rn FROM [OCCUPATIONS] ) OC PIVOT ( max([name]) for [occupation] in ([Doctor], [Professor], [Singer], [Actor])
) as PO
Seems like cookies are disabled on this browser, please enable them to open this website
Occupations
You are viewing a single comment's thread. Return to all comments →
) as PO