CROSS JOIN
CROSS JOIN pairs every row with every row. Useful for combinations but grows fast.
Example
SELECT c.title, l.level
FROM (SELECT 'Beginner' AS level UNION SELECT 'Pro') l
CROSS JOIN courses c
LIMIT 4;Result
title | level Intro to HTML | Beginner CSS Basics | Beginner JavaScript | Beginner Python | Beginner
Exercise
Pair all rows.
a JOIN b
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.