Database Design Theory and Methodology Flashcards

(38 cards)

1
Q

the grouping of attributes to form “good” relation schemas

A

relational database design

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

2 levels of goodness of relation schemas

A
  1. logical/conceptual level : “user view” level
  2. implementation/storage level : “base relation” level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

measures of quality of a relational database design (4)

A
  1. semantics of the relation attributes
  2. redundant information in tuples and update anomalies
  3. null values in tuples
  4. spurious tuples
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

refers to the interpretation of attribute values in a tuple

A

semantics of a relation attributes

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

bottom line of relational database design (2)

A
  1. design a schema that can be explained easily relation by relation
  2. the semantics of attributes should be easy to interpret
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

effects of redundant information in tuples (5)

A
  1. wastes storage
  2. causes update anomalies
  3. insertion anomalies
  4. deletion anomalies
  5. modification anomalies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

some data cannot be easily inserted into the database

A

insertion anomaly

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

deleting some data can cause other information to be lost

A

deletion anomaly

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

all copies of the redundant data have to be changed or else the database will become inconsistent

A

modification anomaly

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

relational database design guideline 1 (4)

A
  • each tuple in a relation should represent one entity/relationship instance only
  • attributes of different entities should not be mixed in the same relation
  • only foreign keys should be used to refer to other entities
  • entity and relationship attributes should be kept apart as much as possible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

relational database design guideline 2 (2)

A
  • design a schema that does not suffer from the insertion, deletion and modification anomalies
  • if there are any anomalies present, then note them so that applications can be made to take them into account
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

reasons for null values in tuples (5)

A
  1. attribute is not applicable or invalid
  2. attribute value unknown but may not exist
  3. value known to exist but unavailable
  4. can waste storage space
  5. leads to difficulty of performing selections, aggregation operations and specifying joins
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

relational database design guideline 3 (2)

A
  • relations should be designed such that their tuples will have as few NULL values as possible
  • attributes that are NULL frequently could be placed in separate relations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

additional tuples that represent invalid information; a possible result of a JOIN operation on poorly designed relations

A

spurious tuples

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

relational database design guideline 4

A

relations should be designed in a way that no spurious tuples will be generated if a natural-join operation is applied to them

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

used to define normal forms for relations denoted by X -> Y

A

functional dependency

17
Q

a property of the meaning of data and hold at all times

A

functional dependency

18
Q

what inference rule for FDs is being shown:

If Y subset-of X, then X -> Y

19
Q

what inference rule for FDs is being shown:

If X -> Y, then XZ -> YZ

20
Q

what inference rule for FDs is being shown:

if X -> Y and Y -> Z, then X -> Z

21
Q

what inference rule for FDs is being shown:

if X -> YZ, then X -> Y and X -> Z

A

decomposition

22
Q

what inference rule for FDs is being shown:

if X -> Y and X -> Z, then X -> YZ

23
Q

what inference rule for FDs is being shown:

if X -> Y and WY -> Z, then WX -> Z

A

pseudotransitivity

24
Q

set of all dependencies that include F as well as all dependencies that can be inferred from F

A

Closure of F (F+)

25
process of decomposing unsatisfactory "bad" relations by breaking up their attributes into smaller relations
normalization
26
process of taking a relation schema through a series of tests to certify whether it satisfies a certain normal form is carried out in practice to minimize redundancy and insertion, deletion and modification anomalies
normalization
27
refers to the highest normal form condition that a relation meets
normal form
28
an attribute that is a member of some candidate keys
prime attribute
29
an attribute that is not a member of any candidate key
nonprime attribute
30
what normal form is being described: the domain of an attribute must include only atomic values and that the value of any attribute in a tuple must be a single value from the domain of that attribute
first normal form
31
first normal form disallows (3)
1. composite attributes 2. multi-valued attributes 3. complex attributes
32
what normal form is being described: a relation schema R is in this normal form if every non-prime attribute A in R is fully functionally dependent on the primary key of R
second normal form
33
what normal form is being described: for relations where primary key contains multiple attributes, no nonkey attribute should be functionally dependent on a part of the primary key
second normal form
34
what normal form is being described: No non-prime attribute A in R is transitively dependent on the primary key
third normal form
35
what normal form is being described: each relation should not have a nonkey attribute that is functionally determined by another nonkey attribute
third normal form
36
1st normal form: all attributes depend on the ___
key
37
2nd normal form all attributes depend on the ____
whole key
38
3rd normal form all attributes depend on __
nothing but the key