I've been reading on this site as well as Google about how to Pivot my data but can't seem to quite figure it out. I want to be able to pivot without doing any aggregation. My data currently looks like. My sql is:
select act, rn
from ##Temp_Outage_Crew
order by act
act         rn
00208763-BC2    AUXO01
00208763-BC2    AUXO03
But I want it to look like what is shown below. I now there is a way to PIVOT this data but I can't get it to work.
act             rn1        rn2
00208763-BC2    AUXO01     AUX03
I have "attempted" to use the row number function but I can't seem to get that to work either.
 
     
     
    