Given, for example, the following from table alpha
:
Field1 | Field2 | Field3
------------------------
Foo | Bar | ABCD
How could I break this data down into:
Field1 | Field2 | Field3
------------------------
Foo | Bar | A
Foo | Bar | B
Foo | Bar | C
Foo | Bar | D
I'm sure there's a fancy join
trick that could do it, but I can't figure it out. Speed optimisation isn't a priority - this query is only being used for a one-off report, so I don't mind if it's slow as molasses (gives me chance to make a coffee!)