SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Entity Relationship Diagrams 
Prof. Sadique Nayeem
ER diagrams 
• ER-modeling is a data modeling technique used in software 
engineering to produce a conceptual data model of a 
information system. 
• Diagrams created using this ER-modeling technique are called 
Entity-Relationship Diagrams, or ER diagrams or ERDs.
Entity 
• Entities are represented by means of rectangles. 
Rectangles are named with the entity set they 
represent. 
Entities in a school database
Attributes 
• Attributes are properties of entities. Attributes are 
represented by means of eclipses. Every eclipse represents 
one attribute and is directly connected to its entity 
(rectangle).
composite attributes 
• If the attributes are composite, they are further divided in a 
tree like structure. Every node is then connected to its 
attribute. That is composite attributes are represented by 
eclipses that are connected with an eclipse.
Multivalued attributes 
• Multivalued attributes are depicted by double eclipse.
Derived attributes 
• Derived attributes are depicted by dashed eclipse.
Relationship 
• Relationships are represented by diamond shaped 
box. Name of the relationship is written in the 
diamond-box. All entities (rectangles), participating 
in relationship, are connected to it by a line.
Binary relationship and cardinality 
• A relationship where two entities are participating, is 
called a binary relationship. 
• Cardinality is the number of instance of an entity 
from a relation that can be associated with the 
relation.
One-to-one 
• When only one instance of entity is associated with the 
relationship, it is marked as '1'. This image below reflects that 
only 1 instance of each entity should be associated with the 
relationship. It depicts one-to-one relationship 
• The 1:1 (read as “one to one”) relationship means that one 
instance of the parent entity is associated with one instance 
of the child entity. 
Example: Employee of the month and parking for him.
One-to-many 
• When more than one instance of entity is associated with the relationship, 
it is marked as 'N'. This image below reflects that only 1 instance of entity 
on the left and more than one instance of entity on the right can be 
associated with the relationship. It depicts one-to-many relationship 
• In this kind of relationship, a single instance of a parent entity is 
associated with many instances of a child entity; however, the child entity 
instance is related to only one instance of the parent. 
Example:
Many-to-one 
• When more than one instance of entity is associated with the relationship, 
it is marked as 'N'. This image below reflects that more than one instance 
of entity on the left and only one instance of entity on the right can be 
associated with the relationship. It depicts many-to-one relationship. 
• In this case, many instances of a parent entity can relate to many instances 
of a child entity.
Many-to-many 
• This image below reflects that more than one instance of 
entity on the left and more than one instance of entity on the 
right can be associated with the relationship. It depicts many-to- 
many relationship
Participation Constraints 
• Total Participation: Each entity in the entity is involved in the 
relationship. Total participation is represented by double 
lines. 
• Partial participation: Not all entities are involved in the 
relation ship. Partial participation is represented by single line.
Codd's 12 Rules 
• Dr Edgar F. Codd did some extensive research in Relational Model of database 
systems and came up with twelve rules of his own which according to him, a 
database must obey in order to be a true relational database. 
• These rules can be applied on a database system that is capable of managing is 
stored data using only its relational capabilities. This is a foundation rule, which 
provides a base to imply other rules on it. 
• Rule 1: Information rule: This rule states that all information (data), which is 
stored in the database, must be a value of some table cell. Everything in a 
database must be stored in table formats. This information can be user data or 
meta-data. 
• Rule 2: Guaranteed Access rule: This rule states that every single data element 
(value) is guaranteed to be accessible logically with combination of table-name, 
primary-key (row value) and attribute-name (column value). No other means, such 
as pointers, can be used to access data. 
• Rule 3: Systematic Treatment of NULL values: This rule states the NULL values in 
the database must be given a systematic treatment. As a NULL may have several 
meanings, i.e. NULL can be interpreted as one the following: data is missing, data 
is not known, data is not applicable etc.
• Rule 4: Active online catalog: This rule states that the structure description of 
whole database must be stored in an online catalog, i.e. data dictionary, which can 
be accessed by the authorized users. Users can use the same query language to 
access the catalog which they use to access the database itself. 
• Rule 5: Comprehensive data sub-language rule :This rule states that a database 
must have a support for a language which has linear syntax which is capable of 
data definition, data manipulation and transaction management operations. 
Database can be accessed by means of this language only, either directly or by 
means of some application. If the database can be accessed or manipulated in 
some way without any help of this language, it is then a violation. 
• Rule 6: View updating rule: This rule states that all views of database, which can 
theoretically be updated, must also be updatable by the system. 
• Rule 7: High-level insert, update and delete rule: This rule states the database 
must employ support high-level insertion, updation and deletion. This must not be 
limited to a single row that is, it must also support union, intersection and minus 
operations to yield sets of data records. 
• Rule 8: Physical data independence: This rule states that the application should 
not have any concern about how the data is physically stored. Also, any change in 
its physical structure must not have any impact on application.
• Rule 9: Logical data independence: This rule states that the logical data must be 
independent of its user’s view (application). Any change in logical data must not 
imply any change in the application using it. For example, if two tables are merged 
or one is split into two different tables, there should be no impact the change on 
user application. This is one of the most difficult rule to apply. 
• Rule 10: Integrity independence: This rule states that the database must be 
independent of the application using it. All its integrity constraints can be 
independently modified without the need of any change in the application. This 
rule makes database independent of the front-end application and its interface. 
• Rule 11: Distribution independence: This rule states that the end user must not be 
able to see that the data is distributed over various locations. User must also see 
that data is located at one site only. This rule has been proven as a foundation of 
distributed database systems. 
• Rule 12: Non-subversion rule: This rule states that if a system has an interface that 
provides access to low level records, this interface then must not be able to 
subvert the system and bypass security and integrity constraints.
• http://www.tutorialspoint.com/dbms/er_diagram_representation.htm 
• http://www.databasedesign.co.uk/bookdatabasesafirstcourse/chap3/chap3.htm
Reference 
• Systems Analysis Design, 5th edition, A. Dennis, B. A. Wixom and R. M. 
Roth, John Wiley and sons.

Weitere ähnliche Inhalte

Was ist angesagt?

Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 
Database Design
Database DesignDatabase Design
Database Design
learnt
 

Was ist angesagt? (20)

ER MODEL
ER MODELER MODEL
ER MODEL
 
Relational algebra ppt
Relational algebra pptRelational algebra ppt
Relational algebra ppt
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Er diagram
Er diagramEr diagram
Er diagram
 
Relational model
Relational modelRelational model
Relational model
 
Chapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelChapter-4 Enhanced ER Model
Chapter-4 Enhanced ER Model
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 
Data Models
Data ModelsData Models
Data Models
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Database Design
Database DesignDatabase Design
Database Design
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
 

Andere mochten auch

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Basic database analysis(database)
Basic database analysis(database)Basic database analysis(database)
Basic database analysis(database)
welcometofacebook
 

Andere mochten auch (20)

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Ch 3 E R Model
Ch 3  E R  ModelCh 3  E R  Model
Ch 3 E R Model
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
E R Diagram
E R DiagramE R Diagram
E R Diagram
 
Basic database analysis(database)
Basic database analysis(database)Basic database analysis(database)
Basic database analysis(database)
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
Building a case study database
Building a case study databaseBuilding a case study database
Building a case study database
 
Entity-Relationship Diagrams ERD
Entity-Relationship Diagrams ERDEntity-Relationship Diagrams ERD
Entity-Relationship Diagrams ERD
 
Solution4 1(database)
Solution4 1(database)Solution4 1(database)
Solution4 1(database)
 
Enhanced ER(database)
Enhanced ER(database)Enhanced ER(database)
Enhanced ER(database)
 
Normalization
NormalizationNormalization
Normalization
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
 
Business Intelligence - Intro
Business Intelligence - IntroBusiness Intelligence - Intro
Business Intelligence - Intro
 
Introduction to Graph Databases
Introduction to Graph DatabasesIntroduction to Graph Databases
Introduction to Graph Databases
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 

Ähnlich wie Entity Relationship Diagrams

SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
RiturajDas28
 
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdfDBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
nofakeNews
 
Database System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxDatabase System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptx
Koteswari Kasireddy
 
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdfEContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
sitework231
 
Codd's rules
Codd's rulesCodd's rules
Codd's rules
Mohd Arif
 

Ähnlich wie Entity Relationship Diagrams (20)

SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
 
Relational data base management system (Unit 1)
Relational data base management system (Unit 1)Relational data base management system (Unit 1)
Relational data base management system (Unit 1)
 
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdfDBMS VIVA QUESTIONS_CODERS LODGE.pdf
DBMS VIVA QUESTIONS_CODERS LODGE.pdf
 
DBMS.pdf
DBMS.pdfDBMS.pdf
DBMS.pdf
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptx
 
Database System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxDatabase System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptx
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
 
Cse ii ii sem
Cse ii ii semCse ii ii sem
Cse ii ii sem
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Unit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptxUnit-1-DBMS-SUN-4 everything you need to know.pptx
Unit-1-DBMS-SUN-4 everything you need to know.pptx
 
Database design
Database designDatabase design
Database design
 
DBMS-7.pptx
DBMS-7.pptxDBMS-7.pptx
DBMS-7.pptx
 
Dbms new manual
Dbms new manualDbms new manual
Dbms new manual
 
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdfEContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
 
Types of data bases
Types of data basesTypes of data bases
Types of data bases
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
 
Codd's rules
Codd's rulesCodd's rules
Codd's rules
 
Database Lecture 3.pptx
Database Lecture 3.pptxDatabase Lecture 3.pptx
Database Lecture 3.pptx
 
Data Models
Data ModelsData Models
Data Models
 

Mehr von sadique_ghitm

Mehr von sadique_ghitm (17)

Attitude
AttitudeAttitude
Attitude
 
Personality
PersonalityPersonality
Personality
 
Organizational Behaviour
Organizational BehaviourOrganizational Behaviour
Organizational Behaviour
 
Digital India Initiative
Digital India Initiative Digital India Initiative
Digital India Initiative
 
Pumping lemma for regular language
Pumping lemma for regular languagePumping lemma for regular language
Pumping lemma for regular language
 
Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Data Flow Diagram (DFD)
Data Flow Diagram (DFD)
 
A Study on Face Recognition Technique based on Eigenface
A Study on Face Recognition Technique based on EigenfaceA Study on Face Recognition Technique based on Eigenface
A Study on Face Recognition Technique based on Eigenface
 
Detecting HTTP Botnet using Artificial Immune System (AIS)
Detecting HTTP Botnet using Artificial Immune System (AIS)Detecting HTTP Botnet using Artificial Immune System (AIS)
Detecting HTTP Botnet using Artificial Immune System (AIS)
 
Handling of Incident, Challenges, Risks, Vulnerability and Implementing Detec...
Handling of Incident, Challenges, Risks, Vulnerability and Implementing Detec...Handling of Incident, Challenges, Risks, Vulnerability and Implementing Detec...
Handling of Incident, Challenges, Risks, Vulnerability and Implementing Detec...
 
Study and Analysis of Novel Face Recognition Techniques using PCA, LDA and Ge...
Study and Analysis of Novel Face Recognition Techniques using PCA, LDA and Ge...Study and Analysis of Novel Face Recognition Techniques using PCA, LDA and Ge...
Study and Analysis of Novel Face Recognition Techniques using PCA, LDA and Ge...
 
Computer Worms
Computer WormsComputer Worms
Computer Worms
 
Face recognition: A Comparison of Appearance Based Approaches
Face recognition: A Comparison of Appearance Based ApproachesFace recognition: A Comparison of Appearance Based Approaches
Face recognition: A Comparison of Appearance Based Approaches
 
A study on face recognition technique based on eigenface
A study on face recognition technique based on eigenfaceA study on face recognition technique based on eigenface
A study on face recognition technique based on eigenface
 
Design and analysis of a mobile file sharing system for opportunistic networks
Design and analysis of a mobile file sharing system for opportunistic networksDesign and analysis of a mobile file sharing system for opportunistic networks
Design and analysis of a mobile file sharing system for opportunistic networks
 
A hybrid genetic algorithm and chaotic function model for image encryption
A hybrid genetic algorithm and chaotic function model for image encryptionA hybrid genetic algorithm and chaotic function model for image encryption
A hybrid genetic algorithm and chaotic function model for image encryption
 
A controlled experiment in assessing and estimating software maintenance tasks
A controlled experiment in assessing and estimating software maintenance tasks A controlled experiment in assessing and estimating software maintenance tasks
A controlled experiment in assessing and estimating software maintenance tasks
 
Holographic Memory
Holographic MemoryHolographic Memory
Holographic Memory
 

Kürzlich hochgeladen

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Entity Relationship Diagrams

  • 1. Entity Relationship Diagrams Prof. Sadique Nayeem
  • 2. ER diagrams • ER-modeling is a data modeling technique used in software engineering to produce a conceptual data model of a information system. • Diagrams created using this ER-modeling technique are called Entity-Relationship Diagrams, or ER diagrams or ERDs.
  • 3. Entity • Entities are represented by means of rectangles. Rectangles are named with the entity set they represent. Entities in a school database
  • 4. Attributes • Attributes are properties of entities. Attributes are represented by means of eclipses. Every eclipse represents one attribute and is directly connected to its entity (rectangle).
  • 5. composite attributes • If the attributes are composite, they are further divided in a tree like structure. Every node is then connected to its attribute. That is composite attributes are represented by eclipses that are connected with an eclipse.
  • 6. Multivalued attributes • Multivalued attributes are depicted by double eclipse.
  • 7. Derived attributes • Derived attributes are depicted by dashed eclipse.
  • 8. Relationship • Relationships are represented by diamond shaped box. Name of the relationship is written in the diamond-box. All entities (rectangles), participating in relationship, are connected to it by a line.
  • 9. Binary relationship and cardinality • A relationship where two entities are participating, is called a binary relationship. • Cardinality is the number of instance of an entity from a relation that can be associated with the relation.
  • 10. One-to-one • When only one instance of entity is associated with the relationship, it is marked as '1'. This image below reflects that only 1 instance of each entity should be associated with the relationship. It depicts one-to-one relationship • The 1:1 (read as “one to one”) relationship means that one instance of the parent entity is associated with one instance of the child entity. Example: Employee of the month and parking for him.
  • 11. One-to-many • When more than one instance of entity is associated with the relationship, it is marked as 'N'. This image below reflects that only 1 instance of entity on the left and more than one instance of entity on the right can be associated with the relationship. It depicts one-to-many relationship • In this kind of relationship, a single instance of a parent entity is associated with many instances of a child entity; however, the child entity instance is related to only one instance of the parent. Example:
  • 12. Many-to-one • When more than one instance of entity is associated with the relationship, it is marked as 'N'. This image below reflects that more than one instance of entity on the left and only one instance of entity on the right can be associated with the relationship. It depicts many-to-one relationship. • In this case, many instances of a parent entity can relate to many instances of a child entity.
  • 13. Many-to-many • This image below reflects that more than one instance of entity on the left and more than one instance of entity on the right can be associated with the relationship. It depicts many-to- many relationship
  • 14. Participation Constraints • Total Participation: Each entity in the entity is involved in the relationship. Total participation is represented by double lines. • Partial participation: Not all entities are involved in the relation ship. Partial participation is represented by single line.
  • 15. Codd's 12 Rules • Dr Edgar F. Codd did some extensive research in Relational Model of database systems and came up with twelve rules of his own which according to him, a database must obey in order to be a true relational database. • These rules can be applied on a database system that is capable of managing is stored data using only its relational capabilities. This is a foundation rule, which provides a base to imply other rules on it. • Rule 1: Information rule: This rule states that all information (data), which is stored in the database, must be a value of some table cell. Everything in a database must be stored in table formats. This information can be user data or meta-data. • Rule 2: Guaranteed Access rule: This rule states that every single data element (value) is guaranteed to be accessible logically with combination of table-name, primary-key (row value) and attribute-name (column value). No other means, such as pointers, can be used to access data. • Rule 3: Systematic Treatment of NULL values: This rule states the NULL values in the database must be given a systematic treatment. As a NULL may have several meanings, i.e. NULL can be interpreted as one the following: data is missing, data is not known, data is not applicable etc.
  • 16. • Rule 4: Active online catalog: This rule states that the structure description of whole database must be stored in an online catalog, i.e. data dictionary, which can be accessed by the authorized users. Users can use the same query language to access the catalog which they use to access the database itself. • Rule 5: Comprehensive data sub-language rule :This rule states that a database must have a support for a language which has linear syntax which is capable of data definition, data manipulation and transaction management operations. Database can be accessed by means of this language only, either directly or by means of some application. If the database can be accessed or manipulated in some way without any help of this language, it is then a violation. • Rule 6: View updating rule: This rule states that all views of database, which can theoretically be updated, must also be updatable by the system. • Rule 7: High-level insert, update and delete rule: This rule states the database must employ support high-level insertion, updation and deletion. This must not be limited to a single row that is, it must also support union, intersection and minus operations to yield sets of data records. • Rule 8: Physical data independence: This rule states that the application should not have any concern about how the data is physically stored. Also, any change in its physical structure must not have any impact on application.
  • 17. • Rule 9: Logical data independence: This rule states that the logical data must be independent of its user’s view (application). Any change in logical data must not imply any change in the application using it. For example, if two tables are merged or one is split into two different tables, there should be no impact the change on user application. This is one of the most difficult rule to apply. • Rule 10: Integrity independence: This rule states that the database must be independent of the application using it. All its integrity constraints can be independently modified without the need of any change in the application. This rule makes database independent of the front-end application and its interface. • Rule 11: Distribution independence: This rule states that the end user must not be able to see that the data is distributed over various locations. User must also see that data is located at one site only. This rule has been proven as a foundation of distributed database systems. • Rule 12: Non-subversion rule: This rule states that if a system has an interface that provides access to low level records, this interface then must not be able to subvert the system and bypass security and integrity constraints.
  • 18. • http://www.tutorialspoint.com/dbms/er_diagram_representation.htm • http://www.databasedesign.co.uk/bookdatabasesafirstcourse/chap3/chap3.htm
  • 19.
  • 20.
  • 21. Reference • Systems Analysis Design, 5th edition, A. Dennis, B. A. Wixom and R. M. Roth, John Wiley and sons.