Lecture 5: Database Design Review Flashcards

1
Q

List the three database design

A
  1. conceptual
  2. logical
  3. physical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

quick explanation of conceptual database design.

A

includes identification of the important:

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

quick explanation of logical database design.

A

translate the conceptual to logical structure which includes designing the relations:

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

quick explanation of physical database design.

A

decide how the logical structure is to be physically implemented (as base relation) in the target DBMS. (first stage of considering issues such as data type)

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

Name all relational keys plus three extra keys

A
  1. superkey
  2. candidate key
  3. primary key
  4. foreign key
  5. composite key
  6. alternative (secondary)
  7. surrogate key
  8. simple key
  9. compound key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a surrogate key?

A

used by develops when the PK is considered unsuitable

created and managed via the DBMS

have a numeric value which is automatically incremented for each new row

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

List and explain each constraint

A
  1. entity integrity:
    no attribute of a primary key can be NULL
  2. referential integrity:
    if a foreign key exist, either the value of the foreign key matches the value of the candidate key in the home relation or the value of the foreign key is NULL
  3. domain constraints:
    the value of each attribute in each tuple must be from the domain assigned to this attribute
  4. primary key constraints:
    two distinct tuples in any state of the relation cannot have identical values for all attributes in the key.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Quickly explain the conceptual stage of the database design

A

Step 1. build conceptual data model

  • identify entity types
  • identify relationship types
  • identify and assosciate attributes with entity or relationship types
  • determine attribute domains
  • determine CK, PK, Alternate key attributes
  • determine multiplicity
  • validate conceptual model against user transactions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List the logical stage of the database design

A

Step 2 build and validate logical data model

  • derive relations for the logical data model
  • validate relations using norms.
  • define integrity constraints
  • check for future growth
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List the physical stage of the database design

A

Step 3: translate the logical data model to MySQL

  • design base relations
  • design representation of derived data
  • design general constraints
  • create indexes
  • create views
  • define security requirements
  • consider the intro of controlled redundancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly