Looking for a way to convert columns to rows in sql server.
I have a table with the columns below:
[ID] [Action] [Note] [Resolution]
Here is what I want to get as the result with the columns: [ID] [Notes]
And the result values will be:
'1' 'Action1'
'1' 'Note1'
'1' 'Resolution1'
'2' 'Action2'
'2' 'Note2'
'2' 'Note2.1'
'2' 'Resolution2' etc
Any ideas how I could do this in T-SQL? Also for the note field there could be multiple entries. Thanks!