My table has the following columns:
A | B | C | D | E | F
I want to displays this as follow:
MyColumn | MyCol
This won't scale to a billion columns but...
Select A as MyColumn, B as MyColumn2 from Table
UNION
Select C as MyColumn, D as MyColumn2 from Table
UNION
Select E as MyColumn, F as MyColumn2 from Table
This query will remove the duplicates though. So say there's one record in the table
Hello | World | Hello | World | Hello | World
My select will only return
Hello | World
Sambo's will return all three...