Chapter 3 Flashcards

0
Q

A relation is a three-dimensional table

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

All relations are tables, but not all tables are relations

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A characteristic of a relation is that the cells of the relation hold a single value

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A characteristic of a relation is that the rows of a relation may hold identical values

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A relation is a table composed of columns and rows

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In relational terms as defined by E.F. Codd, a row is called a tuple

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In relational terms as defined by E.F. Codd, a column is called an attribute

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The columns of a relation are sometimes called tuples

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A tuple is a group of one or more columns that uniquely identifies a row

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In functional dependencies, the attribute whose value is known or given is referred to as the determinant

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Attribute Y is functionally dependent on attributes X if the value of attribute X determines the value of Y

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The functional dependency noted as A -> B means that the value of A can be determined from the value or B

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In the functional dependency shown as A -> B, B is the determinant

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Functional dependencies can involve groups of attributes

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Given the functional dependency (A, B) -> C, the attributes (A,B) are referred to as a composite determinant

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Given the functional dependency A -> (B, C), then it is true that A -> B and A -> C

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Given the functional dependency (A, B) -> C, then it is true that A -> C and B -> C

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Given the functional dependency A -> B, then it is necessarily true that B -> A

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

A determinant of a functional dependency may or may not be unique in a relation

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A key is a combination of one or more columns that is used to identify particular rows in a relation

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A row can be uniquely identified by a key

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

A combination key is a group of attributes that uniquely identifies a row

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
A key can be composed of a group of attributes taken together
True
25
It is possible to have a relation that does not have a key
False
26
A candidate key is one of the group keys that may serve as the primary key in a relation
True
27
A relation can have only one candidate key
False
28
A primary key is a candidate key that has been selected to uniquely identify rows in a relation
True
29
A surrogate key is artificial column that is added to a relation to be its primary key
True
30
A surrogate key usually slow performance
False
31
Surrogate keys are normally not shown on forms or reports
True
32
A foreign key is one or more columns in one relation that also is the primary key in another table
True
33
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
34
In a relation
The order of the rows is unimportant
35
A relation is also known as a
Table
36
A tuple is also know as a
Row
37
An attribute is also known as a
Field
38
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
39
Given the functional dependency A -> (B, C), A is a
Determinant
40
Given the functional dependency (A, B) -> C, (A, B) is a
Determinant and composite determinant
41
Given the functional dependency (A, B) -> C, then
None of the above
42
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
43
Which of the following is true about the functional dependency (A, B) -> (C, D)?
A and B together determine D
44
The only reason for having relations is to
Store instances of functional dependencies
45
A combination of one or more columns used to identify particular rows in a relation is a
Key
46
A combination of two or more columns used to identify particular rows in a relation is a
Composite key
47
A determinant determines all the other columns in a relation is a
Candidate key
48
When designing a database, one of the candidate keys in a relation is selected as the
Primary key
49
An artificial columnar added to a relation to serve as the primary keys is a
Surrogate key
50
A key consisting of one or more columns is that a primary key in another relation is a
Foreign key
51
A referential integrity constraint is used to make sure the values of a foreign key match a valid value of a primary key.
True
52
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
53
A referential integrity constraint limits the values of a foreign key.
True
54
If a table meets the minimum definition of a relation, it has an effective or appropriate structure.
False
55
Undesirable consequences of changing the data in a relation are called "modification anomalies"
True
56
A deletion anomaly exists when deleting data about one entity results in the loss of data about another entity
True
57
Relations are classified into "normal forms" based on the types of modification anomalies that they are vulnerable to.
True
58
Any table that meets the definition of a relation is said to be in first normal form (1NF).
True
59
Any table that meets the definition of a relation is in 2NF.
False
60
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
61
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
62
Referential integrity constraints are used to limit the possible values of a
Foreign key
63
A ______ is used to limit the possible values of a(n) foreign key
Referential integrity constraint
64
Normalization is a process used to deal with which of the following modification anomalies?
Insertion anomaly, update anomaly, deletion anomaly
65
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
66
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
67
A table that meets the definition of a relation is in
First normal form
68
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
69
A relation is in Boyce-Codd normal form (BCNF) if and only if it is in 3NF and
Every determinant is a candidate key
70
If a table is designed so that every determinant is a candidate key, then that relation is in ____
Boyce-Codd Normal Form
71
The condition that a non-key attribute determines another non-key attribute is known as transitive dependency
True
72
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
73
Candidate keys are called interlocking candidate keys when they share one or more attributes
False
74
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
75
A defining requirement for a Boyce-Codd Normal Form (BCNF) is that every candidate key must be a determinant
False
76
Every time we break up a relationship during the normalization process, we may have to create a referential integrity constraint
True
77
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
78
When designing or normalizing relations, each relation should have only one theme
True
79
A multivaried dependency exists when a determinant is matched to a set of values
True
80
The multivalued dependency noted A -> -> B, means that the value of A determines a set of values of B
True
81
A relation is in 4NF when multivalued dependencies are isolated in their own relation
True
82
A relation is in 4NF if it is in BCNF and it has no multivalued dependencies
True
83
Domain/key normal form requires that every constraint be logical consequence of the definition of domains and keys
True
84
A relation that is in domain/key normal form is assured to be free from all anomalies
True
85
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
86
A relation is in forth normal form if it is in BCNF and it has no____
Multivalued dependencies
87
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
88
In general, each relation should have ______
One and only one theme