Here is the table structure and I need to query the table based on A_Value field to get partial data from two rows (data stored in seperate rows based on A_Value) to make one row, i.e.
Name Date A_Value X_Value
ABC 11-26-01 10 98%
ABC 11-26-01 15 94%
BCD 11-26-01 10 92%
BCD 11-26-01 15 93%
CDE 11-26-01 10 90%
CDE 11-26-01 15 91%
I need to the query to return the output as follows:
Name Date XY_Value YZ_Value
ABC 11-26-01 98% 94%
BCD 11-26-01 92% 93%
CDE 11-26-01 90% 91%
Name Date A_Value X_Value
ABC 11-26-01 10 98%
ABC 11-26-01 15 94%
BCD 11-26-01 10 92%
BCD 11-26-01 15 93%
CDE 11-26-01 10 90%
CDE 11-26-01 15 91%
I need to the query to return the output as follows:
Name Date XY_Value YZ_Value
ABC 11-26-01 98% 94%
BCD 11-26-01 92% 93%
CDE 11-26-01 90% 91%