SQL
Exercise 9 / 15
Constraints and Keys
Hard
28 points
Write a SQL query to create a table with a primary key, a foreign key, and a UNIQUE constraint.
SQL constraints ensure data integrity. PRIMARY KEY uniquely identifies, FOREIGN KEY links to another table, UNIQUE guarantees uniqueness.
Well done! 🎉
Your answer is correct! You earned 28 points.
Not quite...
Try again! You can do it.
Your code
SQL
Result