1st, 2nd and 3rd Normal Form (Database Normalisation) Youtube Video Questions Flashcards

1
Q

What are the rules for First Normal Form? (1NF)

A
  • All rows must be unique (no duplicate rows)
  • Each cell must only contain a single value (not a list)
  • Each value should be non divisible (can’t be split down further) AKA Atomic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the rules for Second Normal Form? (2NF)

A
  • Database must be in First Normal Form (1NF)
  • Non partial dependency - All non-prime attributes should be fully functionally dependent on the candidate key

(Om man kan lista ut någon information i en kolumn som inte är från hela composite keyn utan bara en av primary keysen är det inte i 2NF!)

(Men verkar som att det år OK att liste ut info som inte är från compositekey hmm)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the rules for Third Normal Form? (3NF)

A
  • Database must bei n First & Second Normal Form
  • No transitive dependency - All fields must only be determinable by the primary/composite key, not by other keys

(Man får inte lista ut information från någonting annat än compositekey (eller primary key om det bara finns en))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a regular solution to make a normalization problem go away?

A

Make a new table of the columns that are problematic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly