Query Quest PostgreSQL Course

Protect your data

Constraints let PostgreSQL enforce your rules. UNIQUE prevents duplicates. CHECK tests a condition. Defaults fill in missing values.

What you'll learn

Constraints live in the database, so every app writing to it must follow the same rules.

Your mission

Create a badges table with a unique, required code and positive points.

Enable JavaScript to run SQL in the interactive lesson.