Normalisation Flashcards
What is a relational database
When there is multiple tables in a database that relate to each other
What is a table
A collection of records
What is a record
A collection of fields
What is a field
An column that stores a single data item
What is a relation
A table
What manages relational databases
The DataBase Management Systems (DBMS)
What is a primary key
A field in a table that uniquely identifies each record in the table. No values in the primary key fields are repeated
What is a super key
A combination of fields in a table which uniquely identifies each row.
What are candidate keys
Minimal super keys. In other words there must be no attributes included in that do not contribute to the uniqueness of the rows. They are the possible options for the primary key
What are the three types of keys
Super keys, candidaté keys, primary keys
What is a composite key
A combination of two or more fields to form a primary key.
Which is more serious deleting a record or an attribute ?
Deleting a record is removing an entire row of data whereas deleting an attribute is deleting an entire column. The seriousness depends on the data
What is a database schema
When there is multiple tables in a database that relate to each other
What does normalisation avoid
- Repeating groups
- Data redundancy
- Anomalies - update, insertion, and deletion
- complex queries
What are repeating groups
A field that can have multiple values