INSY 3304 chapter 6

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

1/68

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:39 PM on 10/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

69 Terms

1
New cards

What is normalization?

A process for assigning attributes to entities that reduces data redundancy.

2
New cards

What is the main goal of normalization?

To reduce redundant data and eliminate undesirable table structures.

3
New cards

What is data redundancy?

Storing the same data repeatedly in a database.

4
New cards

What is an unnormalized relation?

A table that stores redundant data and may contain repeating groups.

5
New cards

What three anomalies can result from redundant data?

Insertion anomalies, deletion anomalies, and modification anomalies.

6
New cards

What is an insertion anomaly?

A problem that occurs when data cannot be inserted without also inserting unrelated data.

7
New cards

What is a deletion anomaly?

A problem that occurs when deleting a record unintentionally removes other important information.

8
New cards

What is a modification anomaly?

A problem that occurs when the same information must be updated in multiple places, potentially creating inconsistencies.

9
New cards

What are the normal forms listed in the slides?

First Normal Form (1NF), Second Normal Form (2NF), Third Normal Form (3NF), Boyce-Codd Normal Form (BCNF), Fourth Normal Form (4NF), and Projection Join Normal Form (PJNF or 5NF).

10
New cards

What is true about higher normal forms?

A relation in a higher normal form also conforms to the lower normal forms.

11
New cards

What level of normalization is often adequate for business data?

Third Normal Form (3NF).

12
New cards

What is First Normal Form (1NF)?

A relation is in 1NF when all values are atomic, there are no repeating groups, and the primary key is defined.

13
New cards

What does atomic value mean?

Each row-column intersection contains one and only one value.

14
New cards

What are repeating groups?

Repeated sets of values or multiple values stored where a single value should be stored.

15
New cards

What must be defined for a table to be in 1NF?

A primary key.

16
New cards

How can a table with blank repeated project information be converted to 1NF in the slides' example?

Repeat the project number (PNo) and project name (PName) in every applicable row.

17
New cards

What is a potential problem with the 1NF Project table?

Project and employee information may be repeated, creating redundancy and anomalies.

18
New cards

What is a primary key?

An attribute or combination of attributes that uniquely identifies a row.

19
New cards

What is a composite primary key?

A primary key made up of two or more attributes.

20
New cards

What is a nonkey attribute?

An attribute that is not a primary key or part of a primary key.

21
New cards

What is a functional dependency?

A relationship in which each value of attribute A is associated with exactly one value of attribute B.

22
New cards

How is a functional dependency written?

A → B, meaning B is functionally dependent on A.

23
New cards

What is a determinant?

An attribute or combination of attributes that determines another attribute's value.

24
New cards

In Student(ID, Name, SocSecNbr, Major, Deptmt), what does ID determine?

ID → Name, SocSecNbr, Major, Deptmt.

25
New cards

In Student(ID, Name, SocSecNbr, Major, Deptmt), what does SocSecNbr determine?

SocSecNbr → ID, Name, Major, Deptmt.

26
New cards

In the Student example, what does Major determine?

Major → Deptmt.

27
New cards

What is a dependency diagram?

A diagram that shows the functional dependencies among attributes in a relation.

28
New cards

What is full functional dependency?

An attribute is fully functionally dependent on an attribute when it depends on the entire attribute or key and not on any proper subset of it.

29
New cards

When does full functional dependency become an issue?

When a relation has a composite key.

30
New cards

What is a partial dependency?

A dependency in which a nonkey attribute depends on only part of a composite primary key rather than the entire key.

31
New cards

What is a transitive dependency?

A dependency in which A → B and B → C, so A → C through B, under the conditions described in the slides.

32
New cards

What is the key characteristic of a transitive dependency?

A nonkey attribute depends on another nonkey attribute instead of directly on the primary key.

33
New cards

In STUDENT(ID, Major, DeptName), what functional dependencies are given?

ID → Major and Major → DeptName.

34
New cards

In STUDENT(ID, Major, DeptName), why is DeptName transitively dependent on ID?

ID determines Major, and Major determines DeptName, so ID determines DeptName through Major.

35
New cards

What is Second Normal Form (2NF)?

A relation is in 2NF if it is in 1NF and every nonkey attribute is fully dependent on the primary key.

36
New cards

What must be eliminated to achieve 2NF?

Partial dependencies.

37
New cards

How is the original Project relation decomposed into 2NF relations in the slides?

Project(PNo, PName), Employee(ENo, EName, JCode, ChgHr), and Charge(PNo, ENo, Hrs).

38
New cards

What attributes belong in the Project table in 2NF?

PNo and PName.

39
New cards

What attributes belong in the Employee table in 2NF?

ENo, EName, JCode, and ChgHr.

40
New cards

What attributes belong in the Charge table in 2NF?

PNo, ENo, and Hrs.

41
New cards

What does the Charge table represent in the normalization example?

The relationship between projects and employees, including the hours worked.

42
New cards

What is projection when normalizing tables?

Creating new relations from selected attributes of an original relation.

43
New cards

What is nonloss decomposition?

Decomposing a relation into smaller relations without losing information, so the original relation can be recreated through a natural join.

44
New cards

How can the original relation be recreated after the 2NF decomposition in the slides?

By performing a natural join of the new relations.

45
New cards

If a relation is in 1NF and has a single-attribute primary key, what can be said about 2NF?

It has no partial dependency on a proper subset of the primary key, so it satisfies the 2NF requirement.

46
New cards

What is Third Normal Form (3NF)?

A relation is in 3NF if it is in 2NF and every nonkey attribute is nontransitively dependent on the primary key.

47
New cards

What must be eliminated to achieve 3NF?

Transitive dependencies.

48
New cards

Why does the Employee relation in the slides violate 3NF?

ENo determines JCode, and JCode determines ChgHr, creating a transitive dependency.

49
New cards

How is Employee decomposed into 3NF in the slides?

Employee(ENo, EName, JCode) and Job(JCode, ChgHr).

50
New cards

What attributes belong in the Employee table in 3NF?

ENo, EName, and JCode.

51
New cards

What attributes belong in the Job table in 3NF?

JCode and ChgHr.

52
New cards

What is the purpose of the Job table in the 3NF example?

To store the charge rate associated with each job code once.

53
New cards

What is Boyce-Codd Normal Form (BCNF)?

A relation is in BCNF if every determinant is a candidate key.

54
New cards

What is a candidate key?

An attribute or combination of attributes that can uniquely identify a row and qualify to be a primary key.

55
New cards

How is BCNF related to 3NF?

BCNF is a special case of 3NF.

56
New cards

When might a relation violate BCNF?

When it contains two or more composite candidate keys that overlap and share at least one attribute.

57
New cards

When are 3NF and BCNF equivalent according to the slides?

When a table contains only one candidate key or only non-composite keys.

58
New cards

What is Fourth Normal Form (4NF)?

According to the slides, a relation is in 4NF if it is in 3NF and has no multiple sets of multivalued dependencies.

59
New cards

What is a multivalued dependency (MVD)?

A dependency in which one attribute determines a set of values for another attribute, independently of another set of values.

60
New cards

What is the course-teacher-textbook example used to explain 4NF?

Each course can have many teachers and require many textbooks.

61
New cards

What are the two multivalued dependencies in the course example?

Course →→ Teacher and Course →→ Text.

62
New cards

Why is the combined Course-Teacher-Text table redundant?

It combines independent teacher and textbook lists, creating repeated combinations.

63
New cards

What anomaly can occur in the combined Course-Teacher-Text table?

Update anomalies caused by redundant data.

64
New cards

How is the course-teacher-textbook relation decomposed into 4NF tables in the slides?

CX(Course, Text) and CT(Course, Teacher).

65
New cards

What attributes belong in the CX table?

Course and Text.

66
New cards

What attributes belong in the CT table?

Course and Teacher.

67
New cards

According to the slides, what is the minimum number of attributes needed for a multivalued dependency to exist?

At least three attributes in the relation.

68
New cards

What does PJNF stand for?

Projection Join Normal Form, also called Fifth Normal Form (5NF).

69
New cards

What is the main idea behind normalization?

Organize attributes into appropriate relations to minimize redundancy and prevent insertion, deletion, and modification anomalies.