Learn VisualLearn SQL

Combine Every Pair of Rows

CROSS JOIN combines each left-side row with every right-side row. N left rows and M right rows produce N × M rows. Combining two tables without a join condition produces the same set of all combinations as a CROSS JOIN.

GOAL

Calculate the result row count of a CROSS JOIN.

How many rows result from CROSS JOINing 6 customers with 7 products?