chapter 4 Flashcards

(17 cards)

1
Q

Q: What is logical database design?

A

A: Logical database design is the process of organizing data into structured tables based on relationships, ensuring it is free of redundancy and inconsistencies.

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

Q: What is normalization?

A

A: A step-by-step process to organize data into tables to minimize redundancy, avoid anomalies, and maintain consistency.

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

Q: What are the main goals of normalization?

A

Reduce redundancy.
Avoid anomalies in data insertion, deletion, and updates.
Improve data integrity.

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

Q: What are the three types of functional dependencies?

A

Full Dependency: A non-key attribute depends on the entire primary key.
Partial Dependency: A non-key attribute depends on part of a composite key.
Transitive Dependency: A non-key attribute depends indirectly on a key.

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

Q: What is the condition for a table to be in First Normal Form (1NF)?

A

All attributes must be atomic (indivisible).
No repeating groups or arrays are allowed

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

Q: How do you move from 1NF to 2NF?

A

Eliminate partial dependencies by splitting tables.
Ensure non-key attributes depend on the whole primary key.

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

Q: What is the condition for a table to be in Second Normal Form (2NF)?

A

Must be in 1NF.
No partial dependencies are allowed.

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

What is the condition for a table to be in Third Normal Form (3NF)?
A:

A

Must be in 2NF.
No transitive dependencies are allowed.

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

: What is a functional dependency, and can you give an example

A

A relationship where one attribute uniquely determines another.
Example: StudentID → StudentName (StudentID determines the StudentName).

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

Q: What is a transitive dependency, and can you give an example?

A

When a non-key attribute depends on another non-key attribute indirectly through a key.
Example: StudentID → AdvisorID and AdvisorID → AdvisorName implies StudentID → AdvisorName.

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

Q: What are the three normal forms in logical database design?

A

1NF: Eliminate repeating groups and make data atomic.
2NF: Eliminate partial dependencies.
3NF: Eliminate transitive dependencies.

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

Q: What is an update anomaly?

A

A: An inconsistency caused when updating data in one place but not in others.

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

Q: What is a deletion anomaly?

A

A: Loss of valuable information when a row is deleted.
Example: Deleting a course record might delete the professor’s data too.

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

Q: What is an insertion anomaly?

A

A: Difficulty inserting data due to missing required information.
Example: Unable to add a student without assigning them a course.

17
Q

Q: Why is normalization important?

A

A: To reduce redundancy, ensure data consistency, and make databases easier to maintain and update.