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 <
You can do a self cross join...
SELECT a.Col1, b.Col2 FROM MyTable a CROSS JOIN MyTable b