Activity 01
Pair Programming: Basic SELECT Queries
Pairs access a shared sample database of school records. First partner writes a SELECT query to retrieve all student names; second tests and suggests improvements. Switch roles for WHERE clause queries filtering by grade. Discuss results and refine together.
Explain how the SELECT statement is used to extract information from a database.
Facilitation TipDuring Pair Programming: Basic SELECT Queries, assign roles clearly so one student writes the query while the other tests it, ensuring both engage with the syntax.
What to look forPresent students with a simple table schema (e.g., Students table with columns: StudentID, Name, Class, Score). Ask them to write a SELECT statement to retrieve only the names and scores of students in Class '4A'. Review responses for correct syntax and column selection.