In mathematics, specifically set theory, the Cartesian product of two sets A and B, denoted A × B, is the set of all ordered pairs where a is in A and b is in B. In terms of set-builder notation, that is {\displaystyle A\times B=\{\mid a\in A\ {\mbox{ and }}\ b\in B\}.}
What does Cartesian join mean?
CARTESIAN JOIN: The CARTESIAN JOIN is also known as CROSS JOIN. In a CARTESIAN JOIN there is a join for each row of one table to every row of another table. ... i.e., the number of rows in the result-set is the product of the number of rows of the two tables.
How does a Cartesian join work?
The CROSS JOIN is used to generate a paired combination of each row of the first table with each row of the second table. This join type is also known as cartesian join. ... The SQL CROSS JOIN works similarly to this mechanism, as it creates all paired combinations of the rows of the tables that will be joined.