Database Design Flashcards

1
Q

K is super key of relation R iff

A

K ➡ R

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

A functional dependency is trivial if…

A

It is satisfied by all instances of a relation.

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

What is closure of F?

A

Set of all functional dependencies logically implied by F.

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

Name Armstrong’s Axioms.

A

Reflexivity
Augmentation
Transitivity

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

Give additional rules to Armstrong’s Axioms.

A

Union
Decomposition
Pseudo transitivity

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

Name some pitfalls of Relational Database Design.

A

Repetition of information.

Inability of represent certain information.

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

Give conditions for decomposition of a relation.

A

Lossless Decomposition

Dependency Preservation

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

What is normalisation?

A

A process of analysing the given relation schemes based on their FDs and primary keys to achieve the desirable properties.

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

Name two desirable properties of Normalization.

A

Minimising Redundancy.

Minimising Anomalies.

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

When is a relation in 1NF?

A

When all domains of all attributes of R are atomic.

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

When is a relation Schema in 2NF?

A

If every non prime attribute A in R is fully functionally dependent on the primary key of R.

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

When is a relation Schema in 3NF?

A

When a non trivial functional dependency X ➡ Y holds in R, either:
X is a super key of R
A is a prime attribute of R

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

When is a relation in BCNF?

A

If a FD X ➡ A holds in R, then X is super key of R.

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

When is a table in 4NF?

A

Iff for every one of its non trivial multivalued dependencies, X ➡➡ Y, X is a super key.

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

When is a table said to be in 5NF?

A

Iff every join dependency in it is implied by the candidate keys.

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

When is a table in Fourth Normal Form?

A

When it is in BCNF and it contains no multi valued dependencies.

17
Q

When is a table in 5NF?

A

If it is in 4NF and can not be further lossless decomposed.