SpinTheMic
Pro

Explain it in 60 seconds

Primary keys and foreign keys

Backend Engineering · Relational Databases · Beginner

What are primary keys and foreign keys?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Primary key: unique identifier for each row.
  • Not null, never changes.
  • Foreign key: references another table's primary key.
  • Enforces referential integrity.
  • Cascade options.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics