1.3.2 Databases Flashcards
Database
A collection of data or information which is held together in an organised way
Flat file database
Consist of a single table which stores all the data within that database
Relational Database
A database that has a separate table for each entity.
Primary Key
A field in a table which is unique and allows you to identify every record
Foreign Key
Used to link tables together and create relationships
Compound/composite primary key
Combines more that one field to make a unique value
Secondary key
A key made on a field to be indexed for faster searches
Referential integrity
Making sure you cannot delete record that are used by other tables
Entity relationship modelling/diagram
A diagram that represents the relationships between entities in a database
Normalisation
A process used to come up with the best possible design for a relational database
Indexing
Creating a database index that improves the speed of data retrieval in a database
0NF
A table with no normalisation
1NF/ First Normal Form
A table containing no repeated attributes
2NF/ Second Normal Form
A table that’s is in first normal form and contains no partial dependencies
3NF / Third Normal Form
A table that is in 2NF and all non key elements are fully dependent on the primary key