beginner

Designing Tables: Types, Keys and Constraints

Turn a real-world problem into tables: choosing columns and types, primary and foreign keys, NOT NULL, UNIQUE and CHECK constraints, and why a well-designed schema stops bad data before your code ever sees it. Practise on a live SQLite database.

35 min

Designing Tables: Types, Keys and Constraints

Turn a real-world problem into tables: choosing columns and types, primary and foreign keys, NOT NULL, UNIQUE and CHECK constraints, and why a well-designed schema stops bad data before your code ever sees it. Practise on a live SQLite database.

In this lesson:

  • backend
  • sql
  • schema
  • constraints
  • database design

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans