DBMS2
DBMS2
SYSTEMS
By
Aklilu Elias (MIT)
Email
[email protected]
[email protected]
Contact:- +251 916 48 5472
+251 945 00 3945
Attributes
Represents the property used to describe an entity or a
relationship
Represented by Oval
Relationships
Represents the association that exist between entities
Represented by Diamond
Constraints
Represent the constraint in the data
Cardinality and Participation Constraints
85 Prepared by Aklilu E. @WSU
3.2 Basic concepts of E-R model…
Before working on the conceptual design of the
database, one has to know and answer the
following basic questions.
What are the entities and relationships in the
enterprise?
What information about these entities and
relationships should we store in the database?
What are the integrity constraints that hold?
Constraints on each data with respect to update,
retrieval and store.
Represent this information pictorially in ER
diagrams, then map ER diagram into a relational
schema.
86 Prepared by Aklilu E. @WSU
3.3 Developing an E-R Diagram
Designing conceptual model for the database is not a one
linear process but an iterative activity where the design is
refined again and again.
To identify the entities, attributes, relationships, and
constraints on the data, there are different set of methods
used during the analysis phase.
These include information gathered by:
Interviewing end users individually and in a group
Questionnaire survey
Direct observation
Examining different documents Analysis of requirements
gathered:
Nouns à prospective/potential entities
Adjectives à prospective/potential attributes
Verbs/verb phrases à prospective/potential relationships
87 Prepared by Aklilu E. @WSU
3.3 Developing an E-R Diagram….
The basic E-R model is graphically depicted and
presented for review.
The process is repeated until the end users and designers
agree that the E-R diagram is a fair representation of the
organizations activities and functions.
Checking for Redundant Relationships in the ER Diagram
Relationships between entities indicate access from one
entity to another
It is therefore possible to access one entity occurrence
from another entity occurrence even if there are other
entities and relationships that separate them
This is often referred to as Navigation’ of the ER diagram.
The last phase in ER modeling is validating an ER Model
against requirement of the user
Examples
An employee works at department
Student enrolls in course
Here, works at & Enrolls are relationships
Names of relationships are written inside the
diamond box.
All the entities (rectangles) participating in a
relationship are connected with relationships by a
line.
95 Prepared by Aklilu E. @WSU
Examples of Relationships
Reading Assignment
Link analysis Demographic clustering Neural clustering Similar time sequence discovery