Activity 01
Pair Programming: SQL Query Challenges
Pairs use an online SQL editor with a sample school database. First partner writes a SELECT query to find students by grade; second tests and refines it. Switch roles for INSERT and UPDATE tasks, discussing errors together. End with pairs sharing one efficient query.
Explain the importance of primary and foreign keys in maintaining data integrity.
Facilitation TipDuring Pair Programming: SQL Query Challenges, circulate and listen for students explaining syntax errors to each other before asking for help.
What to look forPresent students with a scenario, for example, a simple school system with tables for students and classes. Ask them to identify a suitable primary key for the 'students' table and a foreign key in a 'enrollments' table that links to 'students'. Record their answers to gauge understanding of key concepts.