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
and turn this into all combinations:
1 2
1 4
1 5
2 4
2 5
4 5
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…