All courses
· intermediate

Database Design

Decide how data should be stored before you query it. Keys, normalisation, constraints and indexes, and the trade-offs each one makes on your behalf.

Pathaxis · Original content

Written in house, from the work rather than from a syllabus. Every example is one we would use ourselves, and every exercise is checked against the same engine that grades your answer.

89 min 6 lessons 15 quiz questions 6 exercisesStart course

What you’ll learn

  • Choose primary keys and understand what identity means
  • Model one to many and many to many relationships
  • Normalise a table and explain what each step prevents
  • Use constraints so the database enforces your rules
  • Reason about when an index helps and what it costs
  • Write DDL to create and alter tables safely

Before you start

  • · SQL Foundations and Joining Data in SQL
  • · No experience creating tables required

Syllabus

01

Identity and relationships

Keys, and how tables refer to each other.

02

Correctness

Normalisation and constraints, which are two views of the same goal.

03

Performance and change

Indexes, and altering a schema that already holds data.