I am having some issues creating a query where I kind of transpose the rows as columns. For example, I have following table:
UniqueId | PropertyName | PropertyValue | Time
--------------------------------------------------------------------------------------------------
EA91B396-A3DE-4A16-850B-30D7CD45D753 | FileName | Test.txt | 2014-09-26 19:12:58.203
EA91B396-A3DE-4A16-850B-30D7CD45D753 | SourceLocation | C:\Temp | 2014-09-26 19:12:58.203
1036E17B-3527-4F26-9ABD-565DF98C7A98 | FileName | Test2.txt | 2014-09-26 19:15:02.215
1036E17B-3527-4F26-9ABD-565DF98C7A98 | SourceLocation | C:\Temp2 | 2014-09-26 19:15:02.215
Now I would like to transpose this data into the following table:
UniqueId | FileName | SourceLocation | Time
------------------------------------------------------------------------------------------------
EA91B396-A3DE-4A16-850B-30D7CD45D753 | Test.txt | C:\Temp | 2014-09-26 19:12:58.203
1036E17B-3527-4F26-9ABD-565DF98C7A98 | Test2.txt | C:\Temp2 | 2014-09-26 19:15:02.215
So basically each value of "PropertyName" becomes a column in my output query and the "PropertyValue" column becomes the value of that new column. Any idea how I can accomplish this?
Thanks in advance!