I have a table - it is like several table concatenated because [Col1] takes two different strings and [Value] takes numerical values relating to [Col1] string. There are 2 sets of columns for segments. Analysis for each segment and later combination of segments. datestamp is also available.
Col1 datestamp Value
ret 1/10/14
ent 1/10/14
ret 2/1/14
ent 2/1/14
Finished table will look like this:
Col1ret Col2ent datestamp Value-ret Value-ent
ret ent 1/10/14
ret ent 2/1/14
What would be the SQL script to do this?