Syntax of Cartesian Join
With the WHERE clause
SELECT *
FROMtable 1
CROSS JOINtable 2
WHEREcondition
Without the WHERE Clause
SELECT table1.column1 , table2.column2...
FROM table1, table2...
CROSS JOIN table2;
Cartesian Join
In SQL, a Cartesian Join is also called a Cross Join, it performs the cartesian product of records of two or more joined tables. A Cartesian product matches each row of one table to every other row of another table, only when the WHERE condition is not specified in the query. In case the WHERE condition is specified then the Cartesian Join works as an Inner Join.