Activity 01
Pair Programming: ALTER Modifications
Pairs share a computer with a sample 'employees' table. One partner writes an ALTER TABLE query to add or modify a column based on a prompt, the other predicts the outcome. They execute, check with SELECT, and switch roles after three queries.
Explain the various uses of the ALTER TABLE command.
Facilitation TipDuring Pair Programming, ask students to switch roles after every two commands so both partners actively write and explain the changes.
What to look forPresent students with a scenario: 'A school database has a 'students' table with columns 'student_id', 'name', and 'marks'. Add a new column 'grade' of type VARCHAR(2) with a default value of 'N/A'.' Ask students to write the SQL query to achieve this.