Week 2 - Conceptual Modeling Flashcards

1
Q

What are the 5 steps of Database design? Briefly describe them

A
  1. Requirement analysis - specify what is needed to be modeled in a real world domain
  2. Conceptual design - complete technology independent picture of the db
  3. Logical design - refine a conceptual model to a schema using the data model of a dbms
  4. Physical design - define the schema using DDL of the dbms
  5. Database creation - load data into the db
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define the following terms and draw examples,
1. Entity
2. Attributes
3. Relationship
4. Degree
5. Role

A
  1. A real world object distinguishable from other objects
  2. Each entity is described by a set of attributes.
  3. An association between two or more entities.
  4. Number of entity types involved in a relationship
  5. Part played by entities of a unary relationship
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 ways attributes can be classified as? Give examples.

A
  1. simple vs composite
  2. single value vs multi-value
  3. stored vs derived
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a domain of an attribute?

A

The set of values an attribute may take

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • What are key attributes?
  • What is key constraint?
A
  • A set of attributes for an entity type that are unique for each entity of that type.
  • Every entity type must have at least one key attribute.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • What is cardinality ratio?
  • List the three types of cardinality restraints. Show examples
A
  • Number of relationships an entity can participate in.
    1. 1-to-1
    2. 1-to-N
    3. N-to-M
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a weak entity? List 2 properties.

A

An entity type without its own key
1. has a partial key
2. must participate in an identifying relationship with a strong entity type.

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

What are the concepts included in ERR model?

A
  1. Subclass and superclass
  2. Specialization and generalization
  3. Category or union type
  4. Attribute and relationship inheritance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Provide an example of Subclass/superclass concept

A

Give.

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

Give examples for specialization and generalization

A

Give.

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

What are disjointness and completeness constraints?

A

These two are independent properties.
Disjointness: Subclass of a specialization is disjoint. (give example)
Completeness: Maybe total or partial. (give example)

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