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
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.
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. All nonkey attributes in the relation are dependent on the primary key.
fourth normal form (4NF)
A table is in 4NF if it is in 3NF and contains no multiple independent sets of multivalued dependencies.
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 primary 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 and there are no partial dependencies (dependencies in only part of the primary key).
third normal form (3NF)
A table is in 3NF when it is in 2NF and no nonkey attribute is functionally dependent on another nonkey attribute; that is, it 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.
Some very specialized applications may require normalization beyond the _____.
4NF
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 key attributes defined, has no repeating groups, and all its attributes are dependent on the primary key is said to be in _____.
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.
What can reporting anomalies in a table lead to for managers?
‘Reporting anomalies can cause a multitude of problems for managers, and they generally require database design fixes rather than application programming to resolve.
What is true about a table in 2NF regarding transitive dependencies?
A table in 2NF may exhibit transitive dependency, where the primary key can rely on one or more nonprime attributes to functionally determine other nonprime attributes.
An atomic attribute _____ .
cannot be further subdivided
Granularity refers to _____.
the level of detail represented by the values in a table’s row
Attribute A _____ attribute B if all of the rows in the table that agree in value for attribute A also agree in value for attribute B.
determines
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