Transposing a set of records
- by Flethuseo
I need to transpose records from a table, but by groups like shown in the example below. I need to do this for many records identified by a row number at the beginning of the table.
Need to transpose
From:
1 LastModified$Time 2011-05-10 12:57:03.0
1 Count1 0
1 Count2 58
1 LastModified$UserName mbeardsell
2 LastModified$Time 2010-03-31 21:45:53.0
2 Count1 0
2 Count2 0
2 LastModified$UserName MBeardsell
3 LastModified$Time 2006-12-13 12:55:47.0
3 Count1 1
3 Count2 0
3 LastModified$UserName markhall
to:
LastModified$Time Count1 Count2 LastModified$UserName
1 2011-05-10 12:57:03.0 0 58 mbeardsell
2 2010-03-31 21:45:53.0 0 0 MBeardsell
3 2006-12-13 12:55:47.0 1 0 markhall