Chapter 4 Vocab Flashcards
(25 cards)
Relation
a named 2D 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 may be a 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 the contains minimal redundancy and allows users to insert, modify, and delete the rows in a table without errors or inconsistencies
Anomaly
an error that may result when a user attempts to update a table that contains redundant data 3 Types of Error 1. Insertion 2. Deletion 3. Modification Anomaly
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 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 1NF in which every nonkey attribute is functionally dependent on the primary key
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 relation that is in 2NF and has no transitive dendendencies
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