Cartesian product
A mathematical operation combining every element from one set with every element from another — implemented as CROSS JOIN in SQL.
The Cartesian product is a set theory operation. If set A = {1, 2} and B = {x, y}, their Cartesian product A × B = {(1,x), (1,y), (2,x), (2,y)} — all possible pairs. In relational databases, this is CROSS JOIN: every row in table A combined with every row in table B. A table with 1,000 rows crossed with a 500-row table yields 500,000 rows.
Cartesian products are rarely useful on their own (they explode in size), but they're mathematically fundamental. Every join can be described as a Cartesian product followed by filtering — combine all rows, then keep only those matching your condition. This is why query optimizers work so hard to avoid computing the full Cartesian product; they use indexes and other tricks to find matches directly. The term comes from René Descartes and his coordinate system.