Relational Models and Entity Relationship (Er) Model
Relational Models and Entity Relationship (Er) Model
Relational Models and Entity Relationship (Er) Model
RELATIONSHIP(ER) MODEL
Basic E-R concepts
Conversion of E-R model into
Relations
Problems with E-R models
E-R Diagram Symbols
EER Model
SDLC
DDLC
Automated Design Tools
Entity Set (or Type):It is a set of entities of the same type that
share the same properties or attributes.
A group
properties.
of
objects
with
the
same
uniquely
identifiable
PERSON
Role
Name
Manag
ed
Manage
s
Manag
er
DEPT
IS SUBUNIT OF
1
DIVN
Binary
SKILL
M
Use
s
PROJECT
PERSON
following
diagrams
shows
the
DEPT
1
It is a one-to-one (1:1)
IS MANAGED BY
1
DIVN
Exactly
one
PERSON
manages the entity DEPT
and each person manages
exactly one DEPT
The
minimum
and
maximum connectivity are
exactly one for both the
entities.
DEPT
has
N
PERSON
It is a one-to-many (1:n)
The
Entity
DEPT
is
associated
to
Many
PERSON,
Whereas
each
PERSON work within exactly
one DEPT.
The
minimum
and
maximum connectivities to
the PERSON side are of
unknown value N and one
respectively.
Both
Maximum
and
minimum connectivities on
DEPT side are one only
PERSON
StartDate
Task
Assignme
nt
WORKS ON
N
PROJECT
It is a many-to-many (m:n)
The Entity PERSON may
work on many PROJECTS
and each Project may be
handled by many persons.
The maximum connectivity
for PERSON and PROJECT
are M and N respectively,
and minimum connectivities
are each defined as one.
PATIENT
WARD
DAY
HOSPITAL
TIME
sometimes
called
atomic
the
EMPNAME
FIRSTNAME
LASTNAME
ADDRESS
CITY
STREET
STREETADDRESS
STREETNAME
HIERARC
ZIP
CODE
APARTME
NT-NO
STATE
Derived
Attribute
Multi-valued
attribute
skill
Years-of
experien
ce
Pername
person
Per-id
Identifier
attribute
Dateemploye
d
Peraddres
s
There are
constraints:
two
types
of
cardinality
person
Works-on
projects
PER-ID
DESIGN
LASTNAME
DOB
PER-ID
PROJT-ID
HRSSPENT
STATUS
PROJ-ID
STARTDATE
ENDDATE
PERSON
PERDESIG
ID
LASTNAME
DOB
10651
9
Manag
er
Thoma
s
10028
2
12281
6
Progra
mmer
Abhish
ek
22018
7
WORKSO
13125 Analyst Jose
N6PROJ- PER- HRSID50 ID
SPEN
705
T
P4021
27108
4
STAT
US
10651 45
9
MAJO
R
P12281 15
4042 6
PROJECTS
P13125 21
PROJ-ID START4021 6
DATE
MINO
R
MINO
ENDR
DATE
P-4021
100205
250705
P-4042
010104
300305
P-4021
300804
010805
PERSON
FAN
TRAP
HAS
BANK
operat
es
COUNTER
CHASM
TRAP
HAS
counter
overse
as
loan
ENHANCED
RELATIONSHIP(EER):-
ENTITY
ENTERPRISE
LEVEL
ISA
MANAGE
RS
ENGINE
ERS
ISA
ELECTRI
CAL
ENGINE
ISA
COMPUT
ER
ENGINE
ISA
ELECTRO
NIC
ENGINEE
RS
Thom
as
Alk
a
Avina
sh
Mathe
w
ISA
Thom
as
ISA
ISA
ISA
Mathe
w
OCCURRE
NCE
LEVEL
Alk
a
ELECTRI
CAL
Mathe
w
Avina
sh
COMPUT
ER
ELECTRO
NIC
EMP-NAME
EMP-ID
DATE-OFBIRTH
ADDRESS
DATE-OFJOINING
EMPLOYEE
FULLTIME
EMPLOY
EE
ALLO
WLAN
CES
SALA
RY
PART-TIME
EMPLOYEE
HOUR
LYRATE
CONSULTA
NT
CONT
RACTNO
BILLI
NG
RATE
DEPARTMENT
OWNER
COMPANY