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 could cartesian join the table to itself, which would return all combinations of both columns.
select distinct t1.Col1, t2.Col2 from MyTable t1, MyTable t2