Click here to Skip to main content
15,885,928 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have the table below

tableA
mon start end tue start end 
sub009 13:00 14:00 15:00 15:30
sub004 14:00 15:00 15:30 16:00
sub005 17:30 18:00 18:30 19:00

I want it like the table below

    13:00 14:00 15:00 15:30 16:00 17:00 17:30 18:00 18:30 19:00
mon sub009 sub004                       sub005 
tue        sub009 sub004                             sub005
Posted
Updated 10-Aug-15 0:15am
v2
Comments
Advay Pandya 10-Aug-15 6:11am    
Please put some clarity in the question.
Maciej Los 10-Aug-15 6:15am    
What have you tried? Where are you stuck?

1 solution

it may help you..

http://stackoverflow.com/questions/15931607/convert-rows-to-columns-using-pivot-in-sql-server

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900