Lecture 3 Flashcards
1NF (first normal form)
First normal form says that all column values must be atomic.
At the intersection of each row and each Colin there must be only 1 value
2nd normal form
A table is said to be in the second normal form,if it is in 1NF and every non-key column is fully dependent on the (entire) primary key.
3NF (third normal form)
A table is in 3 normal form if it is 2NF and has no transitive dependencies (1 non key field depending on another non-key field)
Foreign key
It is a key that is used to link two tables. A foreign key must first exist as a primary key in another table before it can become the foreign key.
Primary key
Is used to uniquely identify a record in a table
A composite primary key
Is a primary key with multiple fields
Cardinality
How many entities of A must exist for 1 instance of entity B