Return the Cartesian product of two sets.
Section: Joins
Cross join
sql
sql
SELECT c.color, s.size
FROM colors c
CROSS JOIN sizes s;Explanation
Cross joins multiply rows, so use them deliberately.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Joins