Relational Databases (AQA A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
Relational database
Relational database
Data organized in linked tables with relationships
One-to-many relationship
One-to-many relationship
One record links to many; each links to only one
How to implement many-to-many
How to implement many-to-many
Use link table to break into two one-to-many relationships
Entity
Entity
Object/thing to store info about; becomes a table
Attribute
Attribute
Info about an entity; becomes a field/column in table
Primary key
Primary key
Attribute that uniquely identifies each record in a table
Foreign key
Foreign key
Attribute in one table that is primary key from another
First Normal Form (1NF)
First Normal Form (1NF)
No repeating groups; all data is atomic
Second Normal Form (2NF)
Second Normal Form (2NF)
In 1NF + non-key attributes depend on whole primary key
Third Normal Form (3NF)
Third Normal Form (3NF)
In 2NF + no non-key depends on other non-key attributes
