Docsity

Conceptual Database Design: Identifying Entity Types, Relationships, and Attributes, Exams of Design

Partial preview of the text

Download Conceptual Database Design: Identifying Entity Types, Relationships, and Attributes and more Exams Design in PDF only on Docsity!

Conceptual Database Design 1

Watch video: https://youtu.be/Fel2WrnFgjc?t=48m38s

Topics List

  • Conceptual Database Design
  • Build conceptual data model
  • Worked Example

Conceptual Database Design

Overview Database Design Methodology

  • Step 1 Build conceptual data model.
  • Step 2 Build and validate logical data model.
  • Step 3 Translate logical data model for target DBMS.
  • Step 4 Design file organisations and indexes.
  • Step 5 Design user views.
  • Step 6 Design security mechanisms.
  • Step 7 Consider the introduction of controlled redundancy.
  • Step 8 Monitor and tune the operational system.

Conceptual Database Design

Build conceptual data model

  • Step 1.1 Identify entity types.
  • Step 1.2 Identify relationship types.
    • 1.2.1 Cardinality.
    • 1.2.2 Participation.
  • Step 1.3 Identify and associate attributes with entity or relationship types.
  • Step 1.4 Determine attribute domains.
  • Step 1.5 Determine candidate, primary, and alternate key attributes.
  • Step 1.6 Consider use of enhanced modelling concepts (optional step).
  • Step 1.7 Check model for redundancy.
  • Step 1.8 Validate conceptual model against user transactions.
  • Step 1.9 Review conceptual data model with user.

Build conceptual data model

Identify entity types

  • One method is to examine the users’ requirements specification for n ou ns or noun phras es.
  • Also look for major objects such as people, places, or concepts of interest, excluding those nouns that are merely qualities of other objects.
  • Document the entity types.

Build conceptual data model

Identify relationship types

  • This is a key step in the process of building a conceptual data model.
    • One method is to examine users’ requirements specification for verbs or verbal expressions. For example, if we have identified 2 entity types as Staff and PropertyForRent ; a possible expression in the requirements specification would be: Staff Manages PropertyForRent.
    • Use entity–relationship (ER) modelling to understand the relationship types.
    • Determine the multiplicity constraints of relationships. These are used to check and maintain data quality.
    • Document the relationship types.

Build conceptual data model

Documenting attributes

  • Record the following information for each attribute:
    • attribute name and description;
    • data type and length;
    • any aliases that the attribute is known by;
    • whether the attribute must always be specified (in other words, whether the attribute allows or disallows nulls);
    • whether the attribute is multi-valued;
    • whether the attribute is composite, and if so, which simple attributes make up the composite attribute;
    • whether the attribute is derived and, if so, how it should be computed;
    • default values for the attribute (if specified).

Build conceptual data model

Determine attribute domains

  • A domain is a pool of values from which one or more attributes draw their values.
  • A domain specifies:
    • allowable set of values for the attribute;
    • size and format of the attribute.
  • Document the attribute domains.

Topics List

  • Conceptual Database Design
  • Build conceptual data model
  • Worked Example

Worked Example

  • You have been asked to design a database for a garage. The manager of the garage has told you details (on next 2 slides).
  • To do:
    • Produce an Entity Relationship diagram to clarify your understanding of the client’s requirements.

Worked Example

  • Each customer will submit 0 or more repair jobs. Each repair job involves one and only one customer.
  • There is only one supplier for each particular part and each supplier will supply 0 or more parts.
  • Every repair job is worked on by at least one mechanic and each mechanic will work on 0 or more repair jobs. For billing purposes, we need to keep track of all the time that each mechanic spends on a given job.
  • A repair job will use 0 or more parts and a part can be used in 0 or more repair jobs. We need to keep track of the quantity of the part used in each repair job.

Worked Example

  • Step 1.1 Identify entities

Worked Example

  • Step 1.2 Identify relationships

Worked Example

  • Step 1.2 Identify relationships
    • Each customer will submit 0 or more repair jobs. Each repair job involves one and only one customer.
      • Customer 1..1 submits 0..* Repair Job
    • There is only one supplier for each particular part and each supplier will supply 0 or more parts.
      • Supplier 1..1 supplies 0..* Part