Recall & Review
beginner
What is a relationship in a database?
A relationship connects data in one table to data in another table, showing how they relate to each other.
Click to reveal answer
beginner
Why do we use relationships between tables?
To organize data efficiently, avoid repeating information, and make it easier to find related data.
Click to reveal answer
beginner
What is a primary key?
A primary key is a unique identifier for each row in a table, used to connect to other tables.
Click to reveal answer
beginner
What is a foreign key?
A foreign key is a field in one table that links to the primary key in another table, creating a relationship.
Click to reveal answer
intermediate
How do relationships help when updating data?
They help keep data consistent by linking related information, so changes in one place update connected data correctly.
Click to reveal answer
What does a foreign key do in a database?
✗ Incorrect
A foreign key connects one table to another by referencing the primary key in the related table.
Why is it important to understand relationships in databases?
✗ Incorrect
Understanding relationships helps organize data efficiently and avoid unnecessary repetition.
Which key uniquely identifies each record in a table?
✗ Incorrect
The primary key uniquely identifies each row in a table.
What happens if you update data in one table without understanding relationships?
✗ Incorrect
Without understanding relationships, updates can cause related data to become inconsistent.
Which of these best describes a relationship in a database?
✗ Incorrect
A relationship connects tables to show how their data is related.
Explain why understanding relationships between tables is important in a database.
Think about how tables work together like friends sharing information.
You got /4 concepts.
Describe the roles of primary keys and foreign keys in creating relationships.
Imagine primary key as an ID card and foreign key as a reference to that ID.
You got /4 concepts.