How do I return a list of all combinations of values in 2 columns so they are new rows in T-SQL?
e.g.
Col1, Col2 ---- ---- 1 2 1 4 1 5 <
I think this has been over complicated! Just:
SELECT distinct Col1, Col2 FROM MyTable
to get all possible combinations..