-
Notifications
You must be signed in to change notification settings - Fork 689
Cross Join
Mathias Wulff edited this page Dec 15, 2025
·
3 revisions
The CROSS JOIN keyword returns the Cartesian product of rows from the tables in the join. In other words, it combines each row from the first table with each row from the second table.
Syntax:
SELECT ... FROM table1 CROSS JOIN table2 [USING columns | ON condition]AlaSQL supports comma-separated tables in the CROSS JOIN syntax:
SELECT * FROM table1, table2 CROSS JOIN table3See also: JOIN
© 2014-2026, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo