Relational Databases (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Data redundancy
Data redundancy
Same info repeated multiple times in a database table
Data inconsistency
Data inconsistency
Same info stored differently, creating conflicting data
Relational database
Relational database
Multiple smaller tables that are connected to each other
Primary key
Primary key
Field that uniquely identifies each record in a table
Foreign key
Foreign key
Field in one table that refers to primary key in another
Problems with single-table databases
Problems with single-table databases
Data redundancy and data inconsistency
What does data redundancy cause
What does data redundancy cause
Wastes storage space and creates maintenance problems
Why data inconsistency is worse than redundancy
Why data inconsistency is worse than redundancy
Creates conflicting and unreliable data
How relational databases avoid redundancy
How relational databases avoid redundancy
Each piece of info stored in only one place
Updating benefit of relational databases
Updating benefit of relational databases
Only need to update in one place, applies to all
Purpose of foreign keys
Purpose of foreign keys
Connect tables by referencing primary keys in other tables
Key characteristic of primary keys
Key characteristic of primary keys
Each value is unique - no two records can have the same
