Session Plan
Table of Contents
Mentor teaching notes
Teaching formats
Exercises solution
Entity-Relationship Modeling
What is an ERD and why do we use it?
DEMO: ERD Task Management System
Translating ERDs to Database Schema
DEMO: Moving from conceptual to physical model
EXERCISE 1: Database Creation (10/15 minutes)
DEMO: Database creation solution
Add some sample data
Defining Relationships
DEMO: Understanding Foreign Keys and Relationships
1. Move status to a separate table to avoid redundancy
status to a separate table to avoid redundancy2. Create a linking table for users and tasks to handle many-to-many relationships
Querying Relationships
DEMO: Querying related data
Anatomy of a JOIN query
EXERCISE 3: Practice more advanced queries (15 minutes)
DEMO: Show the solution
EXERCISE 4: Design and implement a database for existing data
Steps
Last updated
