Chapter 04 - Logical Database Design Flashcards
relation
a two-dimensional table of data
primary key
an attribute or a combination of attributes that uniquely identifies each row in a relation
composite key
a primary key that consists of more than one attribute
foreign key
an attribute in a relation that serves as the primary key of another relation in the same database
null
A value that may be assigned to an attribute when no other value applies or when the applicable value is unknown.
entity integrity rule
A rule that states that no primary key attribute (or component of an attribute) may be null
referential integrity constraint
a rule that states that either each foreign key value must match a primary key value in another relation or the foreign key value must be null.
well-structured relation
a relation that contains minimal redundancy and allows users to insert, modify, and delete the rows in a table without errors or inconsistencies
anomaly
an error or inconsistency that may result when a user attempts to update a table that contains redundant data
surrogate primary key
a serial number or other system-assigned primary key for a relation
recursive foreign key
a foreign key in a relation that references the primary key values of the same relation
normalization
the process of decomposing relations with anomalies to produce smaller, well-structured relations
normal form
a state of a relation that requires that certain rules regarding relationships between attributes (or functional dependencies) are satisfied
functional dependency
a constraint between two attributes in which the value of one attribute is determined by the value of another attribute
determinant
the attribute on the left side of the arrow in a functional dependency
candidate key
an attribute, or combination of attributes, that uniquely identifies a row in a relation
first normal form (1NF)
a relation that has a primary key and in which there are no repeating groups
second normal form (2NF)
a relation in first normal form with no partial functional dependencies
partial functional dependency
a functional dependency in which one or more nonkey attributes are functionally dependent on part (but not all) of the primary key
third normal form (3NF)
a functional dependency in second normal form with no transitive dependencies
transitive dependency
a functional dependency between the primary key and one or more nonkey attributes that are dependent on the primary key via another nonkey attribute
synonyms
two (or more) attributes that have different names but the same meaning
alias
an alternative name used for an attribute
homonym
an attribute that may have more than one meaning