If I have a table with the following structure
ID NAME A1 A2 A3 B1 B2 B3
X----Y------0---1---2---3---4---5 (dashes are just to push values under headers)
How do I transform it to be the following:
ID NAME LETTER 1 2 3
X----Y----------A------0-1-2
X---Y------------B-----3-4-5
I'm not sure that
1,2,3
will work as column names; that may be RDBMS-dependant.