SlideShare a Scribd company logo
1 of 22
GLOBAL NATURE CARE SANGTHAN
GROUP OF INSTITUTIONS
A Presentation on-
Entity-Relationship
Model
Submitted to-
Mrs.Vandana Pathak
H.O.D.(I.T.Deptt)
Submitted by-
Neelesh Mishra
I.T.- 4th
Sem.
0225IT131027
NE!L
7
Outline
 Database design process
 Entity/Relationship Model
 Entity sets
 Relationship sets
 Constraints on entity sets
 Constraints on relationship sets
 Weak entity sets
 Superclass/subclass relationships
 Aggregation
 Good Design Principles
 Examples
NE!L
7
Conceptual Database Design
Ideas and
information
Abstract ODL
E/R
ODL C++
Embedding
ODL Smalltalk
Embedding
Relations
Relational DBMSs
Smalltalk based
OODBMSs
C++ based
OODBMSs
The design process depends upon the target DBMS
•E/R and ODL are popular models used for conceptual design
•ODL -- Object Definition Language is an emerging standard for OODBMSs
NE!L
7
high level specs
conceptual schema
logical schema
(in DBMS model)
miniworld
conceptual design
logical design
physical design
functional analysis
application design
transaction implementation
Data requirementsfunctional requirements
application programs Physical schema
Requirement Analysis
Functional Design Database Design
Database Design Process
NE!L
7
Database Design Tools
 Help partially automate the design cycle.
 Graphical interface to specify conceptual schemas.
 Partially automated techniques to map to logical (DBMS
dependent) model.
 Features of a good design tool:
 Iterative: errors /shortcomings of original design found later can be
corrected without full restart.
 Interactive: any design choices made by system during design should
be based on interaction with designer.
 Feedback: a designer’s change made at logical and/or physical levels
should be automatically translated to changes at higher levels.
 Example Design tools: ERwin by LogicWorks.
 Database design tools integrated into CASE tools and
supported by most modern DBMSs.
NE!L
7
Requirements of a Conceptual
Data Model
 Expressiveness: should be expressive enough to
allow modeling of different types of relationships,
objects and constraints of the miniworld.
 Simplicity: non-specialists should be able to
understand
 Minimality: few basic powerful concepts that are non-
overlapping
 Diagrammatic Representation: to ease interpretation
 Formality: There should be no ambiguity in the
specification
NE!L
7
Overview of Entity/Relationship
(E/R) Model
 Entities
 Relationships
 Roles of entities in a relationship
 Constraints on entities:
 domain constraints
 key constraints
 Constraints on relationships
 Cardinality Constraints (mapping constraints in SKS)
 Participation Constraints (existence dependencies in SKS)
 Weak Entity Sets
 Multiway relationships
 Subclass/superclass Relationships
 Aggregation
NE!L
7
Entiities and Entity Sets
 Entities
 nouns, ‘things’ in the world.
 E.g., students, courses, employees, departments,
flights, patients, ...
 Attributes
 properties of entities.
 E.g., course name, deptname, departure time, age,
room#, ...
 Entity set -- a set of entities that have the same
attributes.
 In OO terminology, an entity set is similar to a class,
and an entity similar to an instance
NE!L
7
Attributes
 single-valued vrs multi-valued:
 color of car could be multi-valued
 salary of employee is single-valued
 atomic vrs composite:
 age of a person is atomic
 address of a person could be composite
 stored vrs derived:
 derived attributes are those that can be derived from
other attributes or entities, e.g., age can be derived
from date of birth.
 All other attributes are stored attributes
NE!L
7
sam 62900 main austin
pat 62901 north urbana
259 10000
245 2400
364 200000
305 20000
customer
account
Relationships
 Relationship:
 association between multiple entities
 Relationship Set:
 set if relationships over the same entity sets
 Binary, Ternary, 4-nary, … relationship sets
Cust-Account
Relationship set
NE!L
7
ER Diagram -- graphical
representation of ER schema
customer custacct account
cust name
ssno
street
city
acct number
balance
opening date
•Entity set -- rectangles; attributes -- ellipses; dashed ellipse -- derived
attribute; double ellipse -- multivalued attribute; relationship set --
diamonds; lines connect the respective relationship set with entity sets;
•Relationship sets may have 1 or many attributes associated with them --
known as relationship attributes.
NE!L
7
Roles in a Relationship
 The function that an entity plays in a
relationship is called its role
 Roles are normally not explicitly specified
unless the meaning of the relationship needs
clarification
 Roles needed when entity set is related to
itself via a relationship.
employee works for
manager
worker
NE!L
7
Constraints on Entity Sets
 Key Constraint:
 With each entity set a notion of a key can be associated.
 A key is a set of attributes that uniquely identify an entity in
entity set.
 Examples:
 designer may specify that {ssno} is a key for a entity set
customer entity with attributes {ssno, accountno, balance,
name, address}
 designer may specify that {accountno} is also a key , that is, no
joint accounts are permitted.
 Denoted in ER diagram by underlining the attributes that
form a key
 multiple keys may exist in which case one chosen as
primary key and underlined. Other keys called secondary
keys either not indicated or listed in a side comment
attached to the diagram.
NE!L
7
Constraints on Entity Sets (cont.)
 Domain constraint:
 with each simple attribute a domain is associated. The
value of the attribute for each entity is constrained to be in
the domain.
NE!L
7
Cardinality Constraints on
Relationship Sets
 Consider binary relationship set R between entity sets A
and B
 One to one: an entity in A is associated with at most one
entity in B, and an entity in B is associated with atmost
one entity in A.
 an employee has only one spouse in a married-to relationship.
 Many to One: An entity in A is associated with at most
one entity in B, an entity in B is associated with many
entities in A.
 an employee works in a single department but a department
consists of many employees.
NE!L
7
Cardinality Constraints on
Relationship Sets (cont.)
 Many to Many: An entity in A is associated with many
entities in B, and an entity in B is associated with
many entities in A.
 A customer may have many bank accounts. Accounts may
be joint between multiple customers.
NE!L
7
Example
•Keys: ss#, loanid, branchid
•Cardinality constraint: each loan belongs to a single branch
•Participation constraints:
•Each customer must be a customer of atleast one branch
•Each loan must belong to some branch
customer loans
branch
borrower
Belongs-to
Customer-of
N
N
N
N
1
N
Ss# name
branchid location
amount loandid
NE!L
7
Weak Entity Sets
 Entity sets that do not have sufficient attributes to
form a key are called weak entity sets.
 A weak entity set existentially depend upon (one or
more) strong entity sets via a one-to-many
relationship from whom they derive their key
 A weak entity set may have a discriminator (or a
partial key) that distinguish between weak entities
related to the same strong entity
 key of weak entity set = Key of owner entity set(s) +
discriminator
NE!L
7
Limitations of the Basic ER
Model Studied So Far
 Lots of times an entity set has members that have
special properties not associated with all the
members of the entity set.
 E.g., the set of checking accounts and savings
accounts are a subset of the set of accounts.
Checking has a overdraft amount, and savings has a
interest-rate.
NE!L
7
Subclass/Superclass
Relationships
account
ISA
savings checking
account#
balance
interest rates overdraft amount
 savings and checking are subclasses of the account entity set
 account is a superclass of savings and checking entity sets
 An entity in a subclass has to belong to superclass as well -- that is,
every savings account is also an account. Similarly every checking
account is also an account
 Attribute Inheritance: subclasses inherit all the attributes of the
superclass. Similarly, subclasses inherit all relationships in which the
superclass participates
NE!L
7
employee
project
tools
works_using
employee project
tools
work
using
relationships among
relationships not
permitted in ER!
incorrect since it requires
each project to use tools
Limitations of ER Model
We wish to represent that an employee works on
a specific project possibly using multiple tools
NE!L
7
NE!L
7

More Related Content

What's hot (20)

Type of database models
Type of database modelsType of database models
Type of database models
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Files Vs DataBase
Files Vs DataBaseFiles Vs DataBase
Files Vs DataBase
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
ER to Relational Mapping
ER to Relational MappingER to Relational Mapping
ER to Relational Mapping
 
Entity Relationship design issues
Entity Relationship design issuesEntity Relationship design issues
Entity Relationship design issues
 
Basic er diagram
Basic er diagramBasic er diagram
Basic er diagram
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMS
 
The Relational Database Model
The Relational Database ModelThe Relational Database Model
The Relational Database Model
 
Relational Algebra,Types of join
Relational Algebra,Types of joinRelational Algebra,Types of join
Relational Algebra,Types of join
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
ER Diagram
ER DiagramER Diagram
ER Diagram
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
 
Relational database
Relational database Relational database
Relational database
 
Er diagram
Er diagramEr diagram
Er diagram
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 

Viewers also liked

CHAPTER 2 DBMS IN EASY WAY BY MILAN PATEL
CHAPTER 2 DBMS IN EASY WAY BY  MILAN PATELCHAPTER 2 DBMS IN EASY WAY BY  MILAN PATEL
CHAPTER 2 DBMS IN EASY WAY BY MILAN PATELShashi Patel
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship modelyash patel
 
Er Model Nandha&Mani
Er Model Nandha&ManiEr Model Nandha&Mani
Er Model Nandha&Maniguest1e0229a
 
Entity relationship(er) model
Entity relationship(er) modelEntity relationship(er) model
Entity relationship(er) modelRahul Khanwani
 
Desigining of Database - ER Model
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER ModelAjay Chhimpa
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship modelJane Garay
 
Face Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun SharmaFace Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun SharmaArjun Agnihotri
 
Automated attendance system based on facial recognition
Automated attendance system based on facial recognitionAutomated attendance system based on facial recognition
Automated attendance system based on facial recognitionDhanush Kasargod
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagramHaseeb
 
Face Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance SystemFace Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance SystemKarmesh Maheshwari
 
Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...
Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...
Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...Beat Signer
 
MakeMyTrip.com: Case Study and Analysis
MakeMyTrip.com: Case Study and AnalysisMakeMyTrip.com: Case Study and Analysis
MakeMyTrip.com: Case Study and AnalysisRahul Wane
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPTSiddharth Modi
 
Make My Trip - Successful Journey!!!!
Make My Trip - Successful Journey!!!!Make My Trip - Successful Journey!!!!
Make My Trip - Successful Journey!!!!Sushil Rai
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Beat Signer
 

Viewers also liked (20)

CHAPTER 2 DBMS IN EASY WAY BY MILAN PATEL
CHAPTER 2 DBMS IN EASY WAY BY  MILAN PATELCHAPTER 2 DBMS IN EASY WAY BY  MILAN PATEL
CHAPTER 2 DBMS IN EASY WAY BY MILAN PATEL
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship model
 
Er Model Nandha&Mani
Er Model Nandha&ManiEr Model Nandha&Mani
Er Model Nandha&Mani
 
Entity relationship(er) model
Entity relationship(er) modelEntity relationship(er) model
Entity relationship(er) model
 
Make my trip
Make my trip Make my trip
Make my trip
 
Desigining of Database - ER Model
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER Model
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship model
 
Face Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun SharmaFace Detection Attendance System By Arjun Sharma
Face Detection Attendance System By Arjun Sharma
 
Automated attendance system based on facial recognition
Automated attendance system based on facial recognitionAutomated attendance system based on facial recognition
Automated attendance system based on facial recognition
 
Chapter 3 Entity Relationship Model
Chapter 3 Entity Relationship ModelChapter 3 Entity Relationship Model
Chapter 3 Entity Relationship Model
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
Face Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance SystemFace Recognition based Lecture Attendance System
Face Recognition based Lecture Attendance System
 
Erd chapter 3
Erd chapter 3Erd chapter 3
Erd chapter 3
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...
Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...
Extended ER Model and other Modelling Languages - Lecture 2 - Introduction to...
 
MakeMyTrip.com: Case Study and Analysis
MakeMyTrip.com: Case Study and AnalysisMakeMyTrip.com: Case Study and Analysis
MakeMyTrip.com: Case Study and Analysis
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPT
 
Makemytrip
MakemytripMakemytrip
Makemytrip
 
Make My Trip - Successful Journey!!!!
Make My Trip - Successful Journey!!!!Make My Trip - Successful Journey!!!!
Make My Trip - Successful Journey!!!!
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
 

Similar to Entity Relationship Model (20)

Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
Conceptual Modeling of Data
Conceptual Modeling of DataConceptual Modeling of Data
Conceptual Modeling of Data
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptx
 
Revision ch 3
Revision ch 3Revision ch 3
Revision ch 3
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
Entityrelationshipmodel
 
entityrelationshipmodel.pptx
entityrelationshipmodel.pptxentityrelationshipmodel.pptx
entityrelationshipmodel.pptx
 
DBMS UNIT1
DBMS UNIT1DBMS UNIT1
DBMS UNIT1
 
Data & Databases
Data & Databases Data & Databases
Data & Databases
 
L7 er2
L7 er2L7 er2
L7 er2
 
dbms er model
dbms er modeldbms er model
dbms er model
 
Er diagrams
Er diagramsEr diagrams
Er diagrams
 
27 fcs157al3
27 fcs157al327 fcs157al3
27 fcs157al3
 
Database part3-
Database part3-Database part3-
Database part3-
 
E R Model details.ppt
E R Model details.pptE R Model details.ppt
E R Model details.ppt
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
PHP/MySQL Programming Class Lecture 03
PHP/MySQL Programming Class Lecture 03PHP/MySQL Programming Class Lecture 03
PHP/MySQL Programming Class Lecture 03
 
Basic concepts of Data and Databases
Basic concepts of Data and Databases Basic concepts of Data and Databases
Basic concepts of Data and Databases
 
Unit 3 final.pptx
Unit 3 final.pptxUnit 3 final.pptx
Unit 3 final.pptx
 
Database design
Database designDatabase design
Database design
 
DBMS Class 3
DBMS Class 3DBMS Class 3
DBMS Class 3
 

Recently uploaded

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 

Recently uploaded (20)

★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 

Entity Relationship Model

  • 1. GLOBAL NATURE CARE SANGTHAN GROUP OF INSTITUTIONS A Presentation on- Entity-Relationship Model Submitted to- Mrs.Vandana Pathak H.O.D.(I.T.Deptt) Submitted by- Neelesh Mishra I.T.- 4th Sem. 0225IT131027 NE!L 7
  • 2. Outline  Database design process  Entity/Relationship Model  Entity sets  Relationship sets  Constraints on entity sets  Constraints on relationship sets  Weak entity sets  Superclass/subclass relationships  Aggregation  Good Design Principles  Examples NE!L 7
  • 3. Conceptual Database Design Ideas and information Abstract ODL E/R ODL C++ Embedding ODL Smalltalk Embedding Relations Relational DBMSs Smalltalk based OODBMSs C++ based OODBMSs The design process depends upon the target DBMS •E/R and ODL are popular models used for conceptual design •ODL -- Object Definition Language is an emerging standard for OODBMSs NE!L 7
  • 4. high level specs conceptual schema logical schema (in DBMS model) miniworld conceptual design logical design physical design functional analysis application design transaction implementation Data requirementsfunctional requirements application programs Physical schema Requirement Analysis Functional Design Database Design Database Design Process NE!L 7
  • 5. Database Design Tools  Help partially automate the design cycle.  Graphical interface to specify conceptual schemas.  Partially automated techniques to map to logical (DBMS dependent) model.  Features of a good design tool:  Iterative: errors /shortcomings of original design found later can be corrected without full restart.  Interactive: any design choices made by system during design should be based on interaction with designer.  Feedback: a designer’s change made at logical and/or physical levels should be automatically translated to changes at higher levels.  Example Design tools: ERwin by LogicWorks.  Database design tools integrated into CASE tools and supported by most modern DBMSs. NE!L 7
  • 6. Requirements of a Conceptual Data Model  Expressiveness: should be expressive enough to allow modeling of different types of relationships, objects and constraints of the miniworld.  Simplicity: non-specialists should be able to understand  Minimality: few basic powerful concepts that are non- overlapping  Diagrammatic Representation: to ease interpretation  Formality: There should be no ambiguity in the specification NE!L 7
  • 7. Overview of Entity/Relationship (E/R) Model  Entities  Relationships  Roles of entities in a relationship  Constraints on entities:  domain constraints  key constraints  Constraints on relationships  Cardinality Constraints (mapping constraints in SKS)  Participation Constraints (existence dependencies in SKS)  Weak Entity Sets  Multiway relationships  Subclass/superclass Relationships  Aggregation NE!L 7
  • 8. Entiities and Entity Sets  Entities  nouns, ‘things’ in the world.  E.g., students, courses, employees, departments, flights, patients, ...  Attributes  properties of entities.  E.g., course name, deptname, departure time, age, room#, ...  Entity set -- a set of entities that have the same attributes.  In OO terminology, an entity set is similar to a class, and an entity similar to an instance NE!L 7
  • 9. Attributes  single-valued vrs multi-valued:  color of car could be multi-valued  salary of employee is single-valued  atomic vrs composite:  age of a person is atomic  address of a person could be composite  stored vrs derived:  derived attributes are those that can be derived from other attributes or entities, e.g., age can be derived from date of birth.  All other attributes are stored attributes NE!L 7
  • 10. sam 62900 main austin pat 62901 north urbana 259 10000 245 2400 364 200000 305 20000 customer account Relationships  Relationship:  association between multiple entities  Relationship Set:  set if relationships over the same entity sets  Binary, Ternary, 4-nary, … relationship sets Cust-Account Relationship set NE!L 7
  • 11. ER Diagram -- graphical representation of ER schema customer custacct account cust name ssno street city acct number balance opening date •Entity set -- rectangles; attributes -- ellipses; dashed ellipse -- derived attribute; double ellipse -- multivalued attribute; relationship set -- diamonds; lines connect the respective relationship set with entity sets; •Relationship sets may have 1 or many attributes associated with them -- known as relationship attributes. NE!L 7
  • 12. Roles in a Relationship  The function that an entity plays in a relationship is called its role  Roles are normally not explicitly specified unless the meaning of the relationship needs clarification  Roles needed when entity set is related to itself via a relationship. employee works for manager worker NE!L 7
  • 13. Constraints on Entity Sets  Key Constraint:  With each entity set a notion of a key can be associated.  A key is a set of attributes that uniquely identify an entity in entity set.  Examples:  designer may specify that {ssno} is a key for a entity set customer entity with attributes {ssno, accountno, balance, name, address}  designer may specify that {accountno} is also a key , that is, no joint accounts are permitted.  Denoted in ER diagram by underlining the attributes that form a key  multiple keys may exist in which case one chosen as primary key and underlined. Other keys called secondary keys either not indicated or listed in a side comment attached to the diagram. NE!L 7
  • 14. Constraints on Entity Sets (cont.)  Domain constraint:  with each simple attribute a domain is associated. The value of the attribute for each entity is constrained to be in the domain. NE!L 7
  • 15. Cardinality Constraints on Relationship Sets  Consider binary relationship set R between entity sets A and B  One to one: an entity in A is associated with at most one entity in B, and an entity in B is associated with atmost one entity in A.  an employee has only one spouse in a married-to relationship.  Many to One: An entity in A is associated with at most one entity in B, an entity in B is associated with many entities in A.  an employee works in a single department but a department consists of many employees. NE!L 7
  • 16. Cardinality Constraints on Relationship Sets (cont.)  Many to Many: An entity in A is associated with many entities in B, and an entity in B is associated with many entities in A.  A customer may have many bank accounts. Accounts may be joint between multiple customers. NE!L 7
  • 17. Example •Keys: ss#, loanid, branchid •Cardinality constraint: each loan belongs to a single branch •Participation constraints: •Each customer must be a customer of atleast one branch •Each loan must belong to some branch customer loans branch borrower Belongs-to Customer-of N N N N 1 N Ss# name branchid location amount loandid NE!L 7
  • 18. Weak Entity Sets  Entity sets that do not have sufficient attributes to form a key are called weak entity sets.  A weak entity set existentially depend upon (one or more) strong entity sets via a one-to-many relationship from whom they derive their key  A weak entity set may have a discriminator (or a partial key) that distinguish between weak entities related to the same strong entity  key of weak entity set = Key of owner entity set(s) + discriminator NE!L 7
  • 19. Limitations of the Basic ER Model Studied So Far  Lots of times an entity set has members that have special properties not associated with all the members of the entity set.  E.g., the set of checking accounts and savings accounts are a subset of the set of accounts. Checking has a overdraft amount, and savings has a interest-rate. NE!L 7
  • 20. Subclass/Superclass Relationships account ISA savings checking account# balance interest rates overdraft amount  savings and checking are subclasses of the account entity set  account is a superclass of savings and checking entity sets  An entity in a subclass has to belong to superclass as well -- that is, every savings account is also an account. Similarly every checking account is also an account  Attribute Inheritance: subclasses inherit all the attributes of the superclass. Similarly, subclasses inherit all relationships in which the superclass participates NE!L 7
  • 21. employee project tools works_using employee project tools work using relationships among relationships not permitted in ER! incorrect since it requires each project to use tools Limitations of ER Model We wish to represent that an employee works on a specific project possibly using multiple tools NE!L 7