Relationa DataBase Design Flashcards

(17 cards)

1
Q

What is relational database design?

A

Grouping of attributes to form “Good” relation schemas

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

Two levels of goodness of relation schemas

A

Logical (conceptual level) - user view
Implementation (storage level) - base relation

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

Measures of Quality

A
  • Semantics of the relation Attributes
  • Redundant information in Tuples and Update anomalies
  • Null values
  • 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

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

Guideline 1

A

Each tuple in a relation should represent one entity or relationship instance only

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

Some data cannot be easily inserted into database

A

Insertion Anomaly

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

Redundant Information in Tuples effects:

A
  • Waste Storage
  • Causes update anomalies
  • Insertion anomalies
  • Deletion anomalies
  • Modification anomalies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Deleting some data can cause data loss

A

deletion anomaly

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

Guideline 2

A

Design a schema that does not suffer from insertion, deletion and modification anomalies

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

Null values in tuples

A
  • Attributes not applicaple or invalid
  • unknown
  • unavailable
    Effects:
  • can waste storage space
  • leads to difficult of performing selections, aggregation operations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Additional tuples that represent invalid information that are possible result of a join on relation that are poorly designed

A

Spurious Tuples

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

Guidelines 3

A

Relations should be designed such that their tuples will have as few NULL values as possible

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

Functional Dependency

A

Constraint between two sets of attributes from the database

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

Inference Rules for FD
Armstrong’s inference rules

A

IR1(Reflexive)
IR2(Augmentation)
IR3(Transitive)
IR4(Decomposition)
IR5(Union)
IR6(Pseudotransitivity)

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

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
10
Q

For any two tuples t1 and t2 in any relation instance r(R) if t1[x]=t2[x] then t1[y] = t2[y] X->Y hold if whenever two tuples have the same value for X they must have the same value for Y if K is key of R then K functionally determines all attributes in R

A

Functional Dependency