Uploaded by Dj Devesh Agnihotri

H1

advertisement
ENTITY RELATIONSHIP MODEL

In Software Design the way UML diagrams are going
to play the role, in Database design ER diagrams are
going to play the role for it.

ENTITY RELATIONSHIP MODEL is the conceptual
model by which we conceive structure of database,
mention relationships between different components
& identify the constraints that occur in the integrated
designing of a complete database system.
2
3
4
5

An entity set may participate in a relation either
totally or partially.
DIAGRAMATIC NOTATION:
6
7


Cardinality ratio limits the possible
combination entities that may participate in
corresponding relationship set
Mapping cardinality of a relationship are:
◦
◦
◦
◦
1 –1
1 – many
many – 1
Many-many
8
9
10
One to One Relationship
1
1
MANAGER
DEPARTMENT
has
Many to One Relationship
M
EMPLOYEE
reports to
11
1
MANAGER
12
1..1
MANAGER
0..3
DEPARTMENT
manages
Each
department is
managed by
ONE manager
Each manager manages
UP TO 3 departments
(but need not manage
any department)
13
Identify the Entities
Find the Relationships & Cardinalities
Identify the key attributes
Identify other relevant attributes
Draw the ER Diagram
14
15
Supplier
Quotation
ITEM
RetailOutlet
Employee
Customer
Dependent
16
17
18
19
Download