Activity 01
Pair Programming: Schema Design Challenge
Pairs sketch an ER diagram for a social media network with users, posts, and likes tables. They identify primary keys, foreign keys, and normalize to 3NF, then create the database in SQLite. Partners alternate explaining choices to each other.
How does data normalization prevent redundancy and inconsistency?
Facilitation TipDuring the Pair Programming: Schema Design Challenge, circulate and ask teams to explain how their foreign keys prevent orphaned records when one table is deleted.
What to look forPresent students with a poorly designed table containing redundant information. Ask them: 'Identify at least two instances of data redundancy in this table. Explain how this redundancy could lead to data inconsistency when updating records.'