Activity 01
Pair Practice: Employee-Department Joins
Provide pairs with two tables: Employees (all staff) and Departments. Pairs write LEFT JOIN queries to list all employees and their department names, noting NULLs for unassigned staff. They then modify to INNER JOIN and compare outputs side-by-side.
Differentiate between INNER JOIN and LEFT JOIN.
Facilitation TipDuring Pair Practice, provide printed schema diagrams so pairs can annotate matches and mismatches before writing any code.
What to look forPresent students with two simple tables: 'Students' (StudentID, Name) and 'Courses' (CourseID, StudentID, CourseName). Ask them to write a LEFT JOIN query to list all students and the courses they are enrolled in. Then, ask: 'What will appear for students not enrolled in any course?'