Keys and Relationships Flashcards

1️⃣ Familiarise yourself with the flashcards:

  • Look through all the flashcards to see what's on both sides.
  • Make sure you understand the information on each card. If something's unclear, click the link to the revision notes at the bottom of the page for more details.

2️⃣ Test yourself:

  • Look at the question or prompt on each card and try to remember the answer before flipping it over.
  • Check the answer and make a note of any cards you find challenging and need to go over more.

3️⃣ Consistently Review and Practice:

  • Use spaced repetition: spend more time on the cards you struggle with and go over them more often.
  • Regularly review all the flashcards to help you better understand and retain the information over time.

Note: We may include questions that have multiple correct answers. It's useful to remember specific examples to understand these concepts better.

PERSONALISED 1-TO-1 TUTORING

Need more help on this topic? Get 1-to-1 support

Get support with clear explanations, practice and feedback (Ages 5 to 16).

  • DBS-checked tutors
  • Flexible times
  • Parents can be updated

Want an ad-free experience? Subscribe to remove ads

What is a primary key?

A field that makes each record unique in a table.

Give one reason why every table should have a primary key.

It keeps records unique and lets other tables link to them.

What is a foreign key?

A field in one table that stores a primary key from another table to make a link.

What is referential integrity?

A rule that a foreign key must match an existing primary key, stopping orphan records.

What does a 1:M (one-to-many) relationship mean?

One record in the first table can link to many in the second table. Example: one customer has many orders.

What does a 1:1 (one-to-one) relationship mean?

Each record in one table links to at most one record in the other. Example: one person has one passport.

How is an M:N (many-to-many) relationship stored in a database?

Use a link (junction) table that holds two foreign keys, one for each table.

What is a composite key?

A primary key made from two or more fields used together to make a record unique.

What is a candidate key?

Any field that could be the primary key because it is unique, such as an email address.

What is the difference between a natural key and a surrogate key?

A natural key comes from real data, like a National Insurance number. A surrogate key is made by the system, like an ID.