Skip to main content

SQL

Every lesson in this track uses the University schema you built in Setting Up Your DB Schema. The examples, practice queries, and exercises all reference the same core tables so you can see how each concept fits together in a consistent dataset.

University Schema Snapshot

  • department: One row per academic department (dept_id, dept_name)
  • instructor: Faculty details with a required link to department
  • student: Student roster including optional major (dept_id) and enrollment_year
  • course: Course catalog storing ownership by department and instructor
  • enrollment: Bridge table connecting students to courses each semester with an optional grade

Refer back to the schema lesson whenever you need DDL or seed data. Each subsequent module builds on that foundation: