Chapter 14 Flashcards

1
Q

______________ are used to specify formal measures of the “goodness” of relational designs, and are constraints that are derived from the meaning and interrelationships of the data attributes

A

Functional Dependencies (FDs)

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

______ are used to define normal forms for relations.

A

keys

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

Write the FD constraint of the following:
Social security number determines employee name.

A

SSN → ENAME

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

Write the FD constraint of the following:
Employee ssn and project number determines the hours per week that the employee works on the project

A

{SSN, PNUMBER} → HOURS

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

T/F: The FD constraint must hold on every relation instance r(R).

A

True.

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

T/F: If K is a key of schema R, then R functionally determines all attributes in K.

A

F, K funcitonally determines all attributes in K.

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

T/F: Given an instance (population) of a relation, all we can conclude is that an FD MAY exist between certain attributes.

A

true.
What we can definitely conclude is – that certain FDs do not exist because there are tuples that show a violation of those dependencies.

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

Find the FDs that may exist in the following:

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

Find the FDs that may exist in the following:

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

____________ is the process of decomposing unsatisfactory “bad” relations by breaking up their attributes into smaller relations.

A

Normalization

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

__________ is a condition using keys and FDs of a relation to certify whether a relation schema is in a particular normal form.

A

Normal Form

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

_____________ is the process of storing the join of higher normal form relations as a base relation—which is in a lower normal form.

A

Denormalization

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

________ is a normal form based on keys, join dependencies (JDs)

A

5NF

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

________ is a normal form based on keys, multi-valued dependencies (MVDS).

A

4NF

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

_______, ________, and ________ are normal forms based on keys and FDs of a relation schema.

A

2NF, 3NF, BCNF

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

T/F: The database designers need to normalize to the highest possible normal form.

A

false, they do not.
usually up to 3NF and BCNF. 4NF rarely used in practice.

17
Q

A _________ of a relation schema R = {A1, A2, …., An} is a set of attributes S subset-of R with the property that no two tuples t1 and t2 in any legal relation state r of R will have t1[S] = t2[S] .

A

Superkey

18
Q

A ________ is a superkey with the additional property that removal of any attribute from K will cause K not to be a superkey any more.

A

Key K

19
Q

If a relation schema has more than one key, each is called a _____________.

A

candidate key

20
Q

T/F: One of the candidate keys is arbitrarily designated to be the primary key, and the others are called secondary keys.

A

True.

21
Q

T/F: A Prime attribute must be a member of some candidate key.

A

true

22
Q

A __________ is not a prime attribute—that is, it is not a member of any candidate key.

A

nonprime attribute

23
Q

The First Normal form disallows ________ attributes, ___________ attributes, and nested relations; attributes whose values for an individual tuple are non-atomic.

A

composite. multivalued.

24
Q

Normalize the following into 1NF:

A
25
Q

Normalize the following:

A

we decomposed the nested relation EMP_PROJC into two relations EMP_PROJ1 and EMP_PROJ2 by propagating the primary key.

26
Q

________ is an attribute that is member of the primary key K.

A

prime attribute

27
Q

______________ is when an FD Y -> Z where removal of any attribute from Y means the FD does not hold any more.

A

Full functional dependency

28
Q

Is the following a full FD? or not?
{SSN, PNUMBER} -> ENAME

A

it is not a full FD (it is called a
partial dependency ) since SSN -> ENAME also holds

29
Q

Is the following a full FD or not?
{SSN, PNUMBER} -> HOURS

A

it is a full FD since neither SSN -> HOURS nor PNUMBER -> HOURS hold

30
Q

A relation schema R is in second normal form (2NF) if every non-prime attribute A in R is fully functionally dependent on the __________.

A

primary key

31
Q
A
32
Q
A