Chapter 3 Lecture Flashcards
(51 cards)
A database is in First Normal Form when the following two conditions are satisfied
Repeating groups have been resolved and the prime key has been identified
A database is in Second Normal Form when Database is
in First Normal Form and every non-key attribute is fully functionally dependent on the primary key
A database is in Third Normal Form when Database is
is in Second Normal Form and it has no transitive dependencies
A foreign key must match a primary key value in another relation, or the foreign key value must be NULL. This rule is
Referential Integrity Rule
The entity integrity rule states that:
no primary key attribute can be null
What value will you assign to an attribute when you do not know it’s value or when the value is unknown
NULL
An inconsistency may occur when attempting to update a table that is not normalized. What is the term given to such a situation?
Update Anomaly
Is it possible for PART of a foreign key to be NULL? Why?
No. Either the whole foreign key is NULL or the whole foreign key is NOT NULL
T/F - Normalization is done after Logical Database Design is complete
True
T/F - Normalization takes into consideration how data is displayed, how it is used in reports and how a database is queried.
False
T/F - One of the two conditions for a relation to be in First Normal Form is: absence of repeating groups.
True
T/F - When inserting a row in a normalized database, i.e., 3NF, there may be additional insertions that result in duplication of data.
False - “You cannot add any data you cannot remove any data; you just focus on removing the anomalies”
T/F - When deleting a row in a normalized database, i.e., 3NF, there may be loss of data.
False
T/F - When modifying a single row in a normalized database, there may be changes required to other rows.
False - That is the objective of a normalized database
T/F - The process of Normalization is reversible, i.e., it is possible to put data in 1NF from 3NF.
True
T/F - In the Normalization process, it is possible that some columns can be ignored.
False
T/F - A NULL value is the same as a space or a zero
False
T/F - The entity integrity rule states that a primary key attribute can be null
False
T/F - Referential integrity is satisfied when a value of one column of a table exists as a value of another column in a different, or same, table.
True
T/F - A foreign key can have a NULL value.
True
T/F - The columns of a relation can be rearranged without changing the meaning or use of the relation.
True
T/F - Rows of a relation must not be interchanged and must be stored in a certain sequence
False
T/F - A primary key uniquely identifies each row in a relation
True
T/F - A composite key consists of only one attribute
False