Normalisation Flashcards
(34 cards)
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
What is data redundancy
When the primary key is expanded
What is an update anomaly
When the same data needs to be updated in more than one place
What is an insertion anomaly
When records are added that do that satisfy the primary key requirements
What is a deletion anomaly
When a deletion. Share unnecessary loss of data
What is normalisation
The process of diving a set of data into smaller tables using a defined set of rules
What are the characteristics of 1NF
No repeating groups
Choose a primary key
What are the characteristics of 2NF
Relation is in 1NF
No partial dependencies
What are the characteristics of 3NF
Relation is in 2NF
No transitive dependencies
What is a dependency
When one field is related to another.