Hi.. I am try to take the following data and order the structure as seen below. But do not know enough SQL to accomplish this. Can someone lead me in the right direction? If I can supply more information I can try.
Thank You
Header datetime Value
capack4_Dat 11/1/2013 23:52:47 27720
capack3_Dat 11/2/2013 1:15:20 27720
capack4_Dat 11/2/2013 2:45:23 27720
capack3_Dat 11/2/2013 4:15:16 27720
capack4_Dat 11/2/2013 5:45:06 27720
capack3_Dat 11/2/2013 7:15:07 27720
capack3_Dat 11/2/2013 7:34:52 27720
and have the output like below..
Machine Start End Value
capack4_Dat 11/1/2013 23:52:47 Invalid 27720
capack3_Dat 11/2/2013 1:15:20 Invalid 27720
capack4_Dat 11/2/2013 2:45:23 Invalid 27720
capack3_Dat 11/2/2013 4:15:16 Invalid 27720
capack4_Dat 11/2/2013 5:45:06 Invalid 27720
capack3_Dat 11/2/2013 7:15:07 11/2/2013 7:34:52 27720
Thank You
Header datetime Value
capack4_Dat 11/1/2013 23:52:47 27720
capack3_Dat 11/2/2013 1:15:20 27720
capack4_Dat 11/2/2013 2:45:23 27720
capack3_Dat 11/2/2013 4:15:16 27720
capack4_Dat 11/2/2013 5:45:06 27720
capack3_Dat 11/2/2013 7:15:07 27720
capack3_Dat 11/2/2013 7:34:52 27720
and have the output like below..
Machine Start End Value
capack4_Dat 11/1/2013 23:52:47 Invalid 27720
capack3_Dat 11/2/2013 1:15:20 Invalid 27720
capack4_Dat 11/2/2013 2:45:23 Invalid 27720
capack3_Dat 11/2/2013 4:15:16 Invalid 27720
capack4_Dat 11/2/2013 5:45:06 Invalid 27720
capack3_Dat 11/2/2013 7:15:07 11/2/2013 7:34:52 27720