Practice Flashcards
What is a relational database?
Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.
All Flashcards in Topic 3.1
Below are all 5 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.
3.1.15 cards
What is a relational database?
A database that stores data in tables and links those tables together with keys, so each fact is stored once in the table it belongs to and other tables point at it rather than copying it.
What is the difference between a primary key, a composite key and a foreign key?
A primary key uniquely identifies each row in its table. A composite key does that using two or more columns together, when no single column is unique. A foreign key holds a primary key value from another table, which is how the link is made.
Give three benefits of a relational database.
Reduced duplication, because each fact is stored once; data integrity, because the database enforces rules such as refusing an invalid foreign key; and consistency, because changing a fact in one place is seen by everyone.
Give three limitations of a relational database.
A rigid schema that must be decided up front and is disruptive to change; poor handling of unstructured data such as documents and images; and difficulty scaling very large volumes across many machines.
Why is storing everything in one large table a problem?
The same fact gets written out on every row that mentions it. Changing it means finding every copy, and missing one leaves the data contradicting itself.
Topic 3.1 study notes
Full notes & explanations for Database fundamentals
Computer Science exam skills
Paper structures, command terms & tips
Want smart review reminders?
Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.
Start Free