Problem Statement
What is a CROSS JOIN?
Explanation
CROSS JOIN pairs every row from the first input with every row from the second. The result has rows equal to rows(A) times rows(B).
Use it to generate combinations such as dates by products, but be careful with size explosion.
Code Solution
SolutionRead Only
SELECT d.dt, p.product_id FROM dates d CROSS JOIN products p;
