Chapter 5-Normalization Flashcards

1
Q

Functional Dependency

A

A relationship between 2 attributes indicating that for each unique attribute A, there is only 1 value of attribute B.

Attribute A - c_id (Attribute A is only associated with one customer name. )

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

Determinant

A

An attribute or group of attributes on which another attribute is functionally dependent.

C_id-> C_name
Customer ID determines Customer Name

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

Partial functional dependency

A

B is functionally dependent on A and an attribute can be removed from A and the dependency still exists

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

Transitive dependency

A

In a functional dependency if B is functionally dependent on A and C is functionally dependent on B, C is then said to be transitively dependent on A

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

BCNF stands for what

A

Boyce Codd Normal Form

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

What are the three advantages of using views

A
  1. Being able to hide certain parts of the database from users makes it more secure.
  2. Views permit customized data access.
  3. Views are stored as named database operations so they can be used to keep frequently used or complex data operations ready.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Denormalization

A

The process of rejoining relations that were decomposed during the normalization process to improve performance mainly during query

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

Violation of BCNF criteria occurs if

A

Relations that have two or more composite candidate keys.

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

DCL stands for what and is used for what purpose.

A

Data control language is used to control access to the database and to control access to the data with in it such as GRANT or REVOKE privileges.

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

The key to moving 2NF relations into 3NF is…

A

Removing any transitive dependencies that may exist in the relations.

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

A relation is in 3NF if it is in 2NF and…

A

No attributes that are not part of the primary key are transitively dependent on the primary key.

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

Atomic value

A

And attributes value that cannot be divided into multiple pieces of information.

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

A relation is said to be in 2NF If the relation is in 1NF and…

A

All attributes that are not part of the primary key are completely functionally dependent on the primary key.

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

A relation is in 1NF if…

A

The data is held in a two-dimensional table with each attribute represented by anatomic value.

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

Decomposition

A

The process of creating new relations from existing relations based on functional dependencies within the original relation.

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

|

A

1 and only 1

17
Q

0 |

A

Zero or more

18
Q

> |

A

1 or more

19
Q

> 0

A

0, 1 or more

20
Q
EMPLOYEE         PHONE
\_\_\_\_\_\_\_\_\_\_\_         \_\_\_\_\_\_\_\_
*id.                         *phone_id
f_name.                  home
l_name                    cell
phone_id                 pager

Which is the strong and weak entity?

A

EMPLOYEE is the strong entity

PHONE is the weak entity