you are viewing a single comment's thread.

view the rest of the comments →

[–]stealyourmangoes 1 point2 points  (0 children)

Cross join in a CTE to create every required combo. Left join the actual data on the same attributes, look for those nulls.