L10 - ERM Application in Concept Flashcards

1
Q

Descibe the components of a UML diagram

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

What is relationship degrees in UML diagrams

A

Number of participating entities involved in a realtionship
- Binary - 2 Entities (most common)
- Ternary - 3 Entities
- Quaternary - 4 Entities
- N-art - >4 Entities involved

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

What are recursive relationships?

A
  • Only one entity participates
    • More than once
    • In different roles
  • Supervisor is also a supervisee
    • As all supervisors are staff
    • In this case occurrences optionally participate in the role of supervisor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three phases of database design?

A
  1. Conceptual Database design
  2. Logical Database design
  3. Physical Database Design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the conceptual phase

A
  • Process of constructing a model of the data
    • Used in an org independent of all physical considerations
  • Accomplished by building an ER diagram
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the steps involved with the conceptual phase?

A
  1. Identify entities
  2. Identify relationships
  3. Identify and associate attributes with entities or relationships
  4. Determine attribute domains
  5. Determine candidate, primary, and alternate key attributes
  6. Check model for redundancy
  7. Check model supports user transactions
  8. Review conceptual database design with users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the first step in conceptual design?

A

1 - Identify Entities

  • Analyse system definition and mission statement
  • Group related nouns help with this
  • Use Pascal naming convention (ImTired)
  • Gather requirements via use case descriptions
    • Create user views
      • Use cases that only apply to certain groups of users
  • From those user views outline the different entities at play
    • Create a data dictionary
    • To hold metadata for the DB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the second step in conceptual design?

A

2 - Identify Relationships

  • Identify associations between entities by analysing use case descriptions
    • Start to think about what tables need to be connected based on entity association
  • Aim to minimise redundancy as indirect relationships don’t require another link
  • Take into account multiplicity (OTO, OTM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the third step in conceptual design?

A

3 - Identify Attributes

  • All entities and relationships have attributes
    • What information needs to be held on X
    • Eg for staff - Name, Email, Phone, Salary, ect
  • Gathered from use case description
  • Document in data dictionary from step 1
    • Use camelCase
    • Decide on if nulls allowed
    • If the data is simple or composite
    • Single or multi-valued
  • Sometimes attributes may lack an entity (go back to 1)
    • Merge entities with same attributes
    • Attribute may be relationship so go back to step 2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the fourth step in conceptual database design?

A

4 - Determine Attribute Domains

  • Domain - pool of values from which one or more attributes draw their values
  • Eg Id is fixed 4 digits
  • Complete data model should include
    • Allowable set of values for each attribute
    • Size and format of the attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the fifth step in conceptual database design?

A

5 - Determine Candidate, primary and alternate keys

  • FIND CANDIDATE KEY, choose a Primary key if there are multiple candidate keys
    • Must hold values that are together
    • Are always unique to the occurrence
    • Never holds null values
  • Primary key should be
    • The smallest candidate
    • Easy to use
    • Unlikely to change and loose uniqueness
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the last step in conceptual database design?

A

6 - Check Model for redundancy

  • Re-examine one-to-one relationships
    • May have entity pairs that reflect the same class or objects and can be merged (warehouse + distribution centre)
  • Remove redundant relationships
    • Reduce unnecessary complexities
    • Redundant if the same info can be determined using other relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly