Chapter 3 Flashcards
A relation is a three-dimensional table
False
All relations are tables, but not all tables are relations
True
A characteristic of a relation is that the cells of the relation hold a single value
True
A characteristic of a relation is that the rows of a relation may hold identical values
False
A relation is a table composed of columns and rows
True
In relational terms as defined by E.F. Codd, a row is called a tuple
True
In relational terms as defined by E.F. Codd, a column is called an attribute
True
The columns of a relation are sometimes called tuples
False
A tuple is a group of one or more columns that uniquely identifies a row
False
A functional dependency is a relationship between attributes such that if we know the value of one attribute, we can determine the value of the other attribute
True
If by knowing the value of A we can find the value of B, then we can say that B is functionally dependent on A
True
In functional dependencies, the attribute whose value is known or given is referred to as the determinant
True
Attribute Y is functionally dependent on attributes X if the value of attribute X determines the value of Y
True
The functional dependency noted as A -> B means that the value of A can be determined from the value or B
False
In the functional dependency shown as A -> B, B is the determinant
False
Functional dependencies can involve groups of attributes
True
Given the functional dependency (A, B) -> C, the attributes (A,B) are referred to as a composite determinant
True
Given the functional dependency A -> (B, C), then it is true that A -> B and A -> C
True
Given the functional dependency (A, B) -> C, then it is true that A -> C and B -> C
False
Given the functional dependency A -> B, then it is necessarily true that B -> A
False
A determinant of a functional dependency may or may not be unique in a relation
True
A key is a combination of one or more columns that is used to identify particular rows in a relation
True
A row can be uniquely identified by a key
True
A combination key is a group of attributes that uniquely identifies a row
False
A key can be composed of a group of attributes taken together
True
It is possible to have a relation that does not have a key
False
A candidate key is one of the group keys that may serve as the primary key in a relation
True
A relation can have only one candidate key
False
A primary key is a candidate key that has been selected to uniquely identify rows in a relation
True
A surrogate key is artificial column that is added to a relation to be its primary key
True
A surrogate key usually slow performance
False
Surrogate keys are normally not shown on forms or reports
True
A foreign key is one or more columns in one relation that also is the primary key in another table
True
A relation
Has rows containing data about an entity, has columns containing data about attributes of the entity, has cells that hold only a single value, has no two identical rows
In a relation
The order of the rows is unimportant
A relation is also known as a
Table
A tuple is also know as a
Row
An attribute is also known as a
Field
Saying that two entities are functionally dependent means that
For one of the entities, if we are given the value of that entity, we can determine the value of one other entity
Given the functional dependency A -> (B, C), A is a
Determinant
Given the functional dependency (A, B) -> C, (A, B) is a
Determinant and composite determinant
Given the functional dependency (A, B) -> C, then
None of the above
Which of the following is true about the functional dependency A -> (X, Y)?
X is functionally dependent on A, A determines Y, A is a determinant, X and Y are functionally dependent on A
Which of the following is true about the functional dependency (A, B) -> (C, D)?
A and B together determine D
The only reason for having relations is to
Store instances of functional dependencies
A combination of one or more columns used to identify particular rows in a relation is a
Key
A combination of two or more columns used to identify particular rows in a relation is a
Composite key
A determinant determines all the other columns in a relation is a
Candidate key
When designing a database, one of the candidate keys in a relation is selected as the
Primary key
An artificial columnar added to a relation to serve as the primary keys is a
Surrogate key
A key consisting of one or more columns is that a primary key in another relation is a
Foreign key
A referential integrity constraint is used to make sure the values of a foreign key match a valid value of a primary key.
True
A constraint that requires an instance of an entity to exist in one relation before it can be referenced in another relation is called an insertion anomaly
False
A referential integrity constraint limits the values of a foreign key.
True
If a table meets the minimum definition of a relation, it has an effective or appropriate structure.
False
Undesirable consequences of changing the data in a relation are called “modification anomalies”
True
A deletion anomaly exists when deleting data about one entity results in the loss of data about another entity
True
Relations are classified into “normal forms” based on the types of modification anomalies that they are vulnerable to.
True
Any table that meets the definition of a relation is said to be in first normal form (1NF).
True
Any table that meets the definition of a relation is in 2NF.
False
A relation is in 2NF if and only if it is in 1NF and all non-key attributes are determined by the entire primary key.
True
A relation is in 3NF if and only if it is in 2NF and there are no non-key attributes determined by another non-key attribute.
True
Referential integrity constraints are used to limit the possible values of a
Foreign key
A ______ is used to limit the possible values of a(n) foreign key
Referential integrity constraint
Normalization is a process used to deal with which of the following modification anomalies?
Insertion anomaly, update anomaly, deletion anomaly
If the removal of facts about one entity results in the unintentional loss of data about another entity, this is referred to as an
Deletion anomaly
Suppose that you need to update one value if the column SalesCost in a relation. The way the relation is constructed, this value actually needs to be changed in three different rows. However, you can only change the value in two of the rows. You have just created a(n)
Update anomaly
A table that meets the definition of a relation is in
First normal form
A relation is in second normal form (2NF) if and only if it is in 1NF and
All non-key attributes are determined by the entire primary key
A relation is in Boyce-Codd normal form (BCNF) if and only if it is in 3NF and
Every determinant is a candidate key
If a table is designed so that every determinant is a candidate key, then that relation is in ____
Boyce-Codd Normal Form
The condition that a non-key attribute determines another non-key attribute is known as transitive dependency
True
An attribute is considered to be a non-key attribute when it is a non-prime attribute, which means that the attribute is not contained in any candidate key
True
Candidate keys are called interlocking candidate keys when they share one or more attributes
False
A relation is in Boyce-Codd Normal Form (BCNF) if and only if it is in 3NF and every determinant is a candidate key
True
A defining requirement for a Boyce-Codd Normal Form (BCNF) is that every candidate key must be a determinant
False
Every time we break up a relationship during the normalization process, we may have to create a referential integrity constraint
True
The essence if normalization is taking a relation that is not in BCNF and breaking it into multiple relations such that each one is in BCNF
True
When designing or normalizing relations, each relation should have only one theme
True
A multivaried dependency exists when a determinant is matched to a set of values
True
The multivalued dependency noted A -> -> B, means that the value of A determines a set of values of B
True
A relation is in 4NF when multivalued dependencies are isolated in their own relation
True
A relation is in 4NF if it is in BCNF and it has no multivalued dependencies
True
Domain/key normal form requires that every constraint be logical consequence of the definition of domains and keys
True
A relation that is in domain/key normal form is assured to be free from all anomalies
True
If a relation is in BCNF and each multivalued dependency has been moved to a relation of its own, then the first relation is in _____
Fourth Normal Form
A relation is in forth normal form if it is in BCNF and it has no____
Multivalued dependencies
A relation is in domain/key normal form if _____
Every constraint on the relation is a logical consequence of the definition of keys and domains
In general, each relation should have ______
One and only one theme