Chapter 14/15: Normalization/Advanced Normalization

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

0nf to 4nf

Last updated 3:12 PM on 11/8/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

Normalization and its purpose

a technique for producing a set of relations with desirable properties, given the data requirements of an enterprise

2
New cards

A characteristic of a suitable set of relations includes …. (hint: 3)

  • Minimal number of attributes

  • Attributes with close logical relationship

  • Minimal redundancy of attributes

3
New cards

Approaches to normalization: (hint: 2)

  1. Use as a bottom-up standalone database design technique

  2. Check validation to check the structure of relation

4
New cards

What are anomalies? What are the three?

inconsistencies or errors that can arise when working with relational databases

Insertion, Deletion, Update/modification

5
New cards

What is insertion anomaly?

specific attributes cannot be inserted into the database without the presence of other attributes

EX: Entering details about staff would also mean entering the branch details. What if the staff isn’t assigned yet? This info would be null.

Entering details about the branch would also have to have staff associated with it.

<p>specific attributes cannot be inserted into the database without the presence of other attributes</p><p>EX: Entering details about staff would also mean entering the branch details. What if the staff isn’t assigned yet? This info would be null. </p><p>Entering details about the branch would also have to have staff associated with it. </p><p></p>
6
New cards

Deletion Anomaly means that deletion of specific data …

results in the loss of additional, unintended data

EX: staffNo SA9 quits or is moved, B005 and its data would be gone and not exist anymore

<p>results in the loss of additional, unintended data</p><p>EX:  staffNo SA9 quits or is moved, B005 and its data would be gone and not exist anymore</p>
7
New cards

Update/modification anomaly:

modifying any single piece of data calls for updating other copies

EX: If we wanted to update the address for B003 in the StaffBranch relation, we would have to update all the appropriate tuples. Otherwise the data will become inconsistent

<p>modifying any single piece of data calls for updating other copies</p><p>EX: <span>If we wanted to update the address for B003 in the StaffBranch relation, we would have to update all the appropriate tuples. Otherwise the data will become inconsistent</span></p>
8
New cards

What are the two properties that you need to worry about when decomposing larger relations into smaller ones? There are two properties

Lossless-join and Dependency

9
New cards

What is lossless-join?

when you split a big table into smaller ones, you can always put them back together (join them) without losing any information from the original table.

10
New cards

What is dependency preservation?

Maintaining the ability to enforce rules from the original table by checking smaller tables independently without needing to join them.

11
New cards

Functional dependency describes the relationship between __________.

attributes

12
New cards

In the expression A ---> B, B is functionally dependent on A or A is a __________ for B.

determinant

13
New cards

If B is functionally dependent on A, but not on any proper subset of A, then B is considered to have a __________ dependency.

full functional

14
New cards

A table that contains one or more repeating groups is referred to as __________ .

Unnormalized Form (0NF)

15
New cards

To achieve First Normal Form (1NF), each row and column must contain only one __________ value.

atomic

16
New cards

Second normal form is 1NF and…

Every non PK is fully functionally dependent on the pk, meaning partial dependencies are removed

<p>Every non PK is fully functionally dependent on the pk, meaning partial dependencies are removed</p>
17
New cards

How are partial dependencies removed?

placing them in a new relation along with a copy of their determinant

18
New cards

Third normal form is 2nf and…

non pk attributes that are transitive dependent on the pk are removed

19
New cards

How to normalize to 3nf?

Place attributes in a new relation along with a copy of the determinant

20
New cards

Boyce-Codd Normal form (BCNF) states that every determinant must be a …

Candidate key

21
New cards

Violations of BCNF are rare, but can happen. What are the two circumstances?

  1. The relation contains two or more sets of composite candidate keys or

  2. The candidate keys overlap, that is have at least one attribute in common

22
New cards

Multi-valued dependency states that for a single value of A …

More than one B exists. Also columns B and C are independent of each other

23
New cards

What is 4NF?

For every nontrivial multi-valued dependency A->>B, A is a candidate key of the relation 

Explore top flashcards

flashcards
Cells 22-23 (copy)
24
Updated 1221d ago
0.0(0)
flashcards
Pesci e tunicati lab
76
Updated 447d ago
0.0(0)
flashcards
Wills Trusts + Estates
244
Updated 115d ago
0.0(0)
flashcards
Tubo digestivo
92
Updated 1047d ago
0.0(0)
flashcards
EMI
308
Updated 389d ago
0.0(0)
flashcards
Mon anniversaire
46
Updated 178d ago
0.0(0)
flashcards
Cells 22-23 (copy)
24
Updated 1221d ago
0.0(0)
flashcards
Pesci e tunicati lab
76
Updated 447d ago
0.0(0)
flashcards
Wills Trusts + Estates
244
Updated 115d ago
0.0(0)
flashcards
Tubo digestivo
92
Updated 1047d ago
0.0(0)
flashcards
EMI
308
Updated 389d ago
0.0(0)
flashcards
Mon anniversaire
46
Updated 178d ago
0.0(0)