I currently have a resultset that looks like this:
Title Value
Start Time 1998-01-04 01:38:00.000
End Time 1998-01-04 01:43:00.000
Product Name TESR
Run Time 325
Delay Time 0
Shutdowns 0
Shift 2
Gross MSF 3.791682
Start Time 1998-08-12 12:43:00.000
End Time 1998-08-13 16:48:00.000
Product Name FCC
Run Time 320
Delay Time 0
Shutdowns 0
Shift 1
Gross MSF 3.791682
Start Time 1999-11-04 02:43:00.000
End Time 1999-11-04 03:48:00.000
Product Name 1/2" TESR
Run Time 325
Delay Time 0
Shutdowns 0
Shift 2
Gross MSF 3.791682
What I would like to end up with is this:
Start Time 1998-01-04 01:38:00.000 1998-08-12 12:43:00.000
End Time 1998-01-04 01:43:00.000 1998-08-13 16:48:00.000
Product Name TESR FCC
Run Time 325 325
Delay Time 0 0
Shutdowns 0 0
Shift 2 2
Gross MSF 3.791682 3.121
Basically looking like a spreadsheet with each group of records being put in a column to the right.
The original result is from a pivot of a flat table joined to a sub table that puts a title to the property fields. It is running on SQL Server 2008 R2. The data is coming from an HMI system and the client wants to see the data in the "spreadsheet" format.