Lesson 5 Flashcards
atomic attribute
An attribute that cannot be further subdivided to produce meaningful components.
For example, a person’s last name attribute cannot be meaningfully subdivided.
atomicity
Atomicity is like saying “If I can’t do ALL those steps, I won’t do ANY.”
- The transaction property that requires all parts of a transaction to be treated as a single, indivisible, logical- unit of work.
- All parts of a transaction must be completed or the entire transaction is aborted.
Boyce-Codd normal form (BCNF)
- A special type of third normal form (3NF) in which every determinant is a candidate key.
- A table in BCNF must be in 3NF.
determinant
Any attribute in a specific row whose value directly determines other values in that row.
denormalization
A process by which a table is changed from a higher-level normal form to a lower-level normal form, usually to increase processing speed.
Denormalization potentially yields data anomalies. Learn more
dependency diagram
A representation of all data dependencies (primary key, partial, or transitive) within a table.
first normal form (1NF)
- The first stage in the normalization process.
- It describes a relation depicted in tabular format, with no repeating groups and a primary key identified.
fourth normal form (4NF)
If you have a scenario where:
- An attribute can have multiple values associated with another attribute
- That second attribute is also independent of other attributes
- Consider normalizing the data by splitting it into two tables.
This will help reduce redundancy, improve data integrity, and simplify future data operations.
granularity
- The level of detail represented by the values stored in a table’s row.
- Data stored at its lowest level of granularity is said to be atomic data.
nonprime attribute
An attribute that is not part of a key.
normalization
A process that assigns attributes to entities so that data redundancies are reduced or eliminated.
partial dependency
A condition in which an attribute is dependent on only a portion (subset) of the composite key.
repeating group
In a relation, a characteristic describing a group of multiple entries of the same type for a single key attribute occurrence.
For example, a car can have multiple colors for its top, interior, bottom, trim, and so on
second normal form (2NF)
The second stage in the normalization process, in which:
- A relation is in 1NF
- There are no partial dependencies
(dependencies in only part of the primary key).
third normal form (3NF)
A table is in 3NF also:
- When it is in 2NF
- Lacks a nonkey attribute that is functionally dependent on another nonkey attribute
cannot include transitive dependencies.
transitive dependency
A condition in which an attribute is dependent on another attribute that is not part of the primary key.
What must be eliminated for each row to define a single entity?
Repeating groups must be eliminated to ensure that each row represents a single entity.
What is the purpose of normalization in database design?
Normalization is used to organize data so that attributes are correctly assigned to entities, thereby reducing or eliminating data redundancies.
A table that has all of the following is said to be in _____?
- All key attributes defined
- No repeating groups
- All its attributes are dependent on the primary key
1NF
If a table in 1NF has a single-attribute primary key, what can be said about its compliance with 2NF?
A table with a single-attribute primary key in 1NF is automatically in 2NF because there cannot be any partial dependencies.
A relational table must not contain a(n) _____.
repeating group
When designing a database, you should _____.
make sure that the table entities are normalized before table structures are created
A dependency based on only a part of a composite primary key is called a _______
partial dependency
What condition must a table satisfy to be classified as in Boyce-Codd Normal Form (BCNF)?
A table is in BCNF if every determinant in the table is a candidate key.
If there are problems with the way data is organized in a database, how can that cause trouble for managers?
Fixing these problems usually requires changing the way the database itself is structured, rather than just making changes to the software that uses the database
These problems (reported anomalies) can create lots of headaches for managers.
What is true about a table in 2NF regarding transitive dependencies?
- 2NF eliminate some transitive dependencies that result from partial dependencies on a candidate key.
- 3NF is required to remove all transitive dependencies.
An atomic attribute _____ .
cannot be further subdivided
Granularity refers to _____.
the level of detail represented by the values in a table’s row
Explain how Attribute A determines Attribute B?
Attribute.A determines attribute.B if all of the rows in the table that agree in value for attribute.A also agree in value for attribute.B
All relational tables satisfy the ______ requirements.
1NF
From a system functionality point of view, _____ attribute values can be calculated when they are needed to write reports or invoices.
derived
What is the objective of normalization in database design?
The objective of normalization is to ensure that each table conforms to the concept of well-formed relations, reducing redundancies and improving data integrity.
1NF, 2NF, and 3NF are _____.
normalization stages
A table that is in 1NF and includes no partial dependencies is said to be in _____.
2NF
In the ______, no row may contain two or more multivalued facts about an entity.
4NF
Is normalization always a desirable aspect of database design?
Normalization is important, but higher levels may not always be necessary for every database, depending on specific business requirements
________ is a process that is used for changing attributes to entities.
Normalization
What is the distinction between a partial dependency and a transitive dependency in database design?
- A partial dependency occurs when a nonprime attribute is dependent on only a part of a composite primary key.
- A transitive dependency arises when a nonprime attribute is dependent on another nonprime attribute, indirectly relating to the primary key transitive explained
- In database design, how do we categorize functional dependencies that rely on only a portion of a composite primary key?
- Why is it incorrect to label these as transitive dependencies?
These dependencies are classified as partial dependencies, not transitive dependencies.
- Partial Dependency: Occurs when a non-prime attribute (an attribute not part of the primary key) is functionally dependent on only part of the composite primary key.
- Transitive Dependency: Occurs when a non-prime attribute is functionally dependent on another non-prime attribute.
Data redundancy produces _____ .
data anomalies
Dependencies can be identified with the help of a dependency ______.
diagram
Before converting a table into 3NF, it is imperative that the table already be in _____.
2NF
From a structural point of view, 2NF is better than _____.
1NF
What Anomaly’s does normalization aim to avoid?
Normalization is a process of organizing the data in the database to avoid insertion anomaly, data redundancy, update and deletion anomaly.
If a table has multiple candidate keys, but one is a composite key. What should be known?
- Even if a single-attribute primary key is chosen, the composite candidate key still enforces a unique constraint on the table.
- This means no two rows can have the same combination of values for the attributes in the composite key
Of the following normal forms, _____ is mostly of theoretical interest.
DKNF
Domain-key normal form Note
For most business transactional databases, we should normalize relations into _____.
3NF
Do all relational tables satisfy the requirements of First Normal Form (1NF)?
Yes, all relational tables meet the requirements of First Normal Form (1NF), which prohibits repeating groups and mandates a primary key.
Normalization works through a series of stages called normal forms. For most purposes in business database design, _____ stages are as high as you need to go in the normalization process.
Three