Activity 01
Pair Practice: INNER vs LEFT JOIN
Provide pairs with two tables, such as customers and orders. Students write and run INNER JOIN and LEFT JOIN queries in an online SQL editor. They discuss and note differences in result sets, then predict outcomes before executing.
What is the logic behind combining data from multiple tables using JOINs?
Facilitation TipDuring Pair Practice, have students run both INNER and LEFT JOIN queries on the same dataset and annotate the result sets side by side.
What to look forPresent students with two simple tables (e.g., 'Students' and 'Courses') and a common ID column. Ask them to write an INNER JOIN query to list students and the courses they are enrolled in. Review their queries for correct syntax and logic.