Database Chapter 4 MIS 380

25 July 2022
4.7 (114 reviews)
35 test answers

Unlock all answers in this set

Unlock answers (31)
question
A candidate key is an attribute, or combination of attributes, that uniquely identifies a row in a relation. (True/False)
answer
True
question
A cascading delete removes all records in other tables associated with the record to be deleted. (True/False)
answer
True
question
A constraint between two attributes is called a(n):
answer
functional dependency
question
A referential integrity constraint is a rule that maintains consistency among the rows of two relations.
answer
True/False
question
A functional dependency between two or more nonkey attributes is called a:
answer
transitive dependency.
question
A primary key is an attribute that uniquely identifies each row in a relation. (True/False)
answer
True
question
A primary key that consists of more than one attribute is called a:
answer
composite key
question
A primary key whose value is unique across all relations is called a(n):
answer
enterprise key
question
A relation is in first normal form if it has no more than one multivalued attribute. (True/False)
answer
false
question
A relation that contains no multivalued attributes and has nonkey attributes solely dependent on the primary key but contains transitive dependencies is in which normal form?
answer
second
question
A rule that states that each foreign key value must match a primary key value in the other relation is called the:
answer
referential integrity constraint.
question
A two-dimensional table of data sometimes is called a:
answer
relation
question
All of the following are the main goals of normalization EXCEPT:
answer
minimize data redundancy. simplify the enforcement of referential integrity. *maximize storage space.* make it easier to maintain data.
question
An attribute in a relation of a database that serves as the primary key of another relation in the same database is called a:
answer
foreign key
question
An attribute (or attributes) that uniquely identifies each row in a relation is called a:
answer
primary key
question
The allowable range of values for a given attribute is part of the domain constraint. (True/False)
answer
true
question
The columns of a relation can be interchanged without changing the meaning or use of the relation. (True/False)
answer
true
question
The normal form which deals with multivalued dependencies is called:
answer
fourth normal form
question
Requirements for a table to qualify as a relation:
answer
It must have a unique name. Every attribute value must be atomic (not multivalued, not composite). Every row must be unique (can't have two rows with exactly the same values for all their fields). Attributes (columns) in tables must have unique names. The order of the columns must be irrelevant. The order of the rows must be irrelevant.
question
What are primary keys?
answer
Primary keys are unique identifiers of the relation. Examples include employee numbers, social security numbers, etc. This guarantees that all rows are unique.
question
What are foreign keys?
answer
Foreign keys are identifiers that enable a dependent relation (on the many side of a relationship) to refer to its parent relation (on the one side of the relationship).
question
What is referential integrity?
answer
rule states that any foreign key value (on the relation of the many side) MUST match a primary key value in the relation of the one side. (Or the foreign key can be null)
question
Delete rules
answer
Restrict-don't allow delete of "parent" side if related rows exist in "dependent" side Cascade-automatically delete "dependent" side rows that correspond with the "parent" side row to be deleted Set-to-Null-set the foreign key in the dependent side to null if deleting from the parent side not allowed for weak entities
question
1st Normal Form Requirements
answer
- no duplicate rows - no multi-valued attributes - order of rows is insignificant
question
2nd Normal Form Requirements
answer
- Is in 1st normal form - every non-key attribute is functionally dependent on the entire primary key
question
3rd Normal Form Requirements
answer
- Is in 2nd normal form - There are no transitive dependents
question
2nd normal form
answer
A relation in first normal form in which every nonkey attribute is fully functionally dependent on the primary key.
question
Third normal form
answer
A relation that is in second normal form and has no transitive dependencies.
question
Transitive Dependency
answer
A functional dependency between the primary key and one or more nonkey attributes that are dependent on the primary key via another nonkey attribute.
question
Anomaly
answer
An error or inconsistency that may result when user attempts to update a table that contains redundant data.
question
Types of Anomaly
answer
insertion, deletion, and modification anomalies
question
Functional Dependency
answer
A constraint between two attributes in which the value of one attribute is determined by a value of another attribute.
question
Determinant
answer
The attribute on the left side of the arrow in a functional dependency.
question
Candidate Key
answer
An attribute, or combination of attributes, that uniquely identifies a row in a relation.
question
Boyce-Codd Normal Form Requirements
answer
- every determinant is a candidate key