Lesson 1 of 8

Impose integrity with constraints

Choose between type, NOT NULL, UNIQUE, CHECK, PRIMARY KEY and FOREIGN KEY.

34 minPostgreSQL Pro

By the end of this lesson

  • Associate a rule with a constraint
  • Understanding Referential Integrity
  • Test for expected failures

SQL Essentials

Unlock this lesson and continue the path.

Impose integrity with constraints is part of the complete programme: 38 lessons, 62 verifiable exercises and 8 published guided projects.

  • Complete content with explained examples
  • SQL simulator and expected result
  • Detailed answer, common mistakes and challenge
Six-month access, one-time payment and no automatic renewal.