Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling

babak danyal
babak danyalbabak danyal
SE-381
Software Engineering
BEIT-V
Lecture # 19
(Entity Relationship and Attribute
Analysis & Data Modelling)
Data Modeling
– Data Modeling, Semantic Modeling, Entity Relationship
Diagrams, Entity Relationship Attribute Modeling, Object Data
Classes etc are various names for the same
technique, commonly known as Data Modeling.
– Different authors have used slightly different notations to
represent Entities, Relationships and Object Data Classes
– Notations used by Chen 1976 (the founder of the technique)
and Baynon-Davies 1989 are followed. Some unlearning and re-
learning may be required to those who have already learnt and
used it in their Data Bases course
– Data Modeling supplements the Process Modeling technique
and helps in identifying the data structures on which the system
is to be built
Entity Relationship Modelling
• One of the Oldest techniques used in Database
and Information Systems Design, proposed by
Chen 1976
• Representation of ‘Real World’ in terms of
Entities, Attributes and Relationships
between the Entities
An Entity is a thing which the enterprise recognizes as being
capable of an independent existence and which can be uniquely
identified (Howe, 1983)
An Entity may be an Object, concept or an event having
characteristics of independent existence and unique
identification, and should have data items or attributes
associated with it.
An Entity together with its attributes define an Entity Type of which
there may be many instances. Similarly, a Relationship Type
may have many instances, where occurrences of allied Entities
are participating
Relationship
A Relationship is
an association between two or more entities. (Howe, 1983)
The common attribute in two Entities, indicates they have some
relationship.
For N entities, there could be N(N-1)/2 possible relations, as every
Entity being part of the systems will be related to every other
entity so only direct relationships between the Entities are
considered
Parent Child School
GoesSponsors
Parent and Child and Child and School have direct
relationships, but the relationship between Parent and School is
indirect or derived relationship which should not be considered
Cardinality or Degree of the Relationship
• It is number of instances of the respective entity type
participating in the relationship.
• It can be one-to-one (1:1), one-to-many (1:M) or many-to-many
(M:N)
• Crow-Foot notation used to represent cardinality
Class Student
CourseStudent
Cheque PaymentBrings
Consists_of
Read
Membership Class or Optionality
• Membership is Mandatory if every occurrence of the entity
participates in the relationship
• Membership is Optional if some of the instances of respective
entity do exist but don’t participate in the relationship, or some
occurrences of the entity can exist independently
– Every Employee must be employed within a Department
– A Department may exist without any (full-time) Employee
• For Mandatory Entity we put in ‘a filled dot’ within the Entity, and
for Optional Entity it is put outside on the Relationship
Cheque PaymentBrings
Employee DeprttWorks
Cheque PaymentBrings
Assignment Rules
1:1 Relationship
– Membership Mandatory on Both Entity Types
– Membership Mandatory for only one Entity Type
Cheque PaymentBrings
Single table is needed
Cheque (Cheque_no, date, sign, amount, … , Payment_Id, …)
Employee CarUses
Two tables needed, post the identifier of Optional into Mandatory
Employee (Employee_no, Name, Designation, …)
Car (Reg_no, Model, Capacity, …., Employee_no )
Assignment Rules
– Membership Optional for both Entity Types
Employee CarUses
Three tables needed, one for each Entity and one for Relationship
Employee (Employee_no, Name, Designation, …)
Car (Reg_No, Model, Capacity, …. )
Uses ( Employee_no, Reg_no, …., Mileage_used_by)
Assignment Rules
1:M Relationship
– Membership of many ‘Entity’ is Mandatory,
Ward PatientContains
Two tables needed
Ward (Ward_no, Location, type, …)
Patient ( Patient_Id,, Name, date_of_Admiss, …, Ward_no)
– Membership of many ‘Entity’ is also Optional
Ward PatientContains
Three tables needed
Ward (Ward_no, Location, type, …)
Patient ( Patient_Id,, Name, date_of_Admiss, …)
Contains (Patient_no, Ward_no)
Assignment Rules
M:N Relationship
– Will need Three Tables irrespective of membership class
Teacher StudentTutors
Three tables needed
Teacher (Teacher_name, Subject, Qualification …)
Student ( Reg_no,, Name, date_of_Admiss, Semester …)
Tutors (Teacher_name, Reg_no)
Drawing of E-R Diagrams
Following steps be followed to draw E-R Diagrams
1. Identify Entities from the problem definition
2. Investigate and record their inter-relationships
3. Draw E-R diagram showing Entities and Relationships
4. Indicate Degree and Membership Class of each Relationship
5. Validate the ERD against the System Requirements
6. Rationalize
7. Revalidate
8. Using Assignment Rules, convert the diagram into set of fully
normalized tables
ERD - A Case Study
Design an appropriate information system for the patients’
appointments and operations activities of a large general
hospital. Initial analysis provide the following brief
description of the existing manual system:
• Patients are dealt with by an appointment system
• Patients must make an appointment for a clinic session held at
one of the hospital’s clinics
• Doctors are allocated one or more appointments within a clinic
session, but only one doctor will be present at each
appointment
• Operations are scheduled and allocated to one of a number of
theatre sessions held in the hospital’s operating theatres, each
doctor may perform a number of given operations on patients
1. First identify the set of Entities from the above description
Entities of the System
HOSPITAL
CLINIC
CLINIC-SESSION
APPOINTMENT
PATIENT
DOCTOR
OPERATION
OPERATING-THEATRE
THEATRE-SESSION
2. Investigate and record Inter-relationships
How many total relations are possible, Identify the direct Relations
3. Draw E-R diagram showing Entities and Relationships
First-Pass ERD
Eliminate the Indirect Relationships
4. Indicate and draw the Optionality of the relationships
Second-Pass ERD
Set of Tables Generated
References
1. NIIT (2005); System Analysis and Design for
Software Engineers; Printice-Hall of India, New
Delhi
2. Paul Beynon-Davies (1989); Information
Systems Development, Macmillan, London, UK;
Ch-5 Entity – Relationship Diagrams pp:38-54
3. P. P-S Chen (1976); the Entity-Relationship
Model – Toward a Unified View of Data; ACM
Transactions on Database Systems 1, pp:9-36
4. Any book on Data Bases or Data Modeling
1 von 18

Recomendados

Use case modeling & analysis v 1 von
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1JIGAR MAKHIJA
1.3K views22 Folien
Object relationship model of software engineering,a subtopic of object orient... von
Object relationship model of software engineering,a subtopic of object orient...Object relationship model of software engineering,a subtopic of object orient...
Object relationship model of software engineering,a subtopic of object orient...julia121214
4.4K views7 Folien
Use case diagrams von
Use case diagramsUse case diagrams
Use case diagramsmohamed tahoon
9.2K views42 Folien
4b use-case analysis von
4b use-case analysis4b use-case analysis
4b use-case analysisChâu Thanh Chương
5.4K views88 Folien
SE18_Lec 08_UML Class Diagram von
SE18_Lec 08_UML Class DiagramSE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramAmr E. Mohamed
1.1K views30 Folien
Dsa unit 1 von
Dsa unit 1Dsa unit 1
Dsa unit 1thamizh arasi
107 views25 Folien

Más contenido relacionado

Was ist angesagt?

SE_Lec 06_Object Oriented Analysis and Design von
SE_Lec 06_Object Oriented Analysis and DesignSE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and DesignAmr E. Mohamed
217 views38 Folien
CLD Development and Coaching Workshop von
CLD Development and Coaching WorkshopCLD Development and Coaching Workshop
CLD Development and Coaching WorkshopJay Hays
129 views3 Folien
SE_Lec 07_UML CLASS DIAGRAM von
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMAmr E. Mohamed
3.7K views31 Folien
SECh78 von
SECh78SECh78
SECh78Joe Christensen
953 views69 Folien
05 use case von
05 use case05 use case
05 use caseBaskarkncet
102 views32 Folien
Feature selection on boolean symbolic objects von
Feature selection on boolean symbolic objectsFeature selection on boolean symbolic objects
Feature selection on boolean symbolic objectsijcsity
526 views20 Folien

Was ist angesagt?(16)

SE_Lec 06_Object Oriented Analysis and Design von Amr E. Mohamed
SE_Lec 06_Object Oriented Analysis and DesignSE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and Design
Amr E. Mohamed217 views
CLD Development and Coaching Workshop von Jay Hays
CLD Development and Coaching WorkshopCLD Development and Coaching Workshop
CLD Development and Coaching Workshop
Jay Hays129 views
SE_Lec 07_UML CLASS DIAGRAM von Amr E. Mohamed
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
Amr E. Mohamed3.7K views
Feature selection on boolean symbolic objects von ijcsity
Feature selection on boolean symbolic objectsFeature selection on boolean symbolic objects
Feature selection on boolean symbolic objects
ijcsity526 views
Object Oriented Approach for Software Development von Rishabh Soni
Object Oriented Approach for Software DevelopmentObject Oriented Approach for Software Development
Object Oriented Approach for Software Development
Rishabh Soni8.3K views
Object oriented methodologies von naina-rani
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
naina-rani81.5K views
Lecture7 use case modeling von Shahid Riaz
Lecture7 use case modelingLecture7 use case modeling
Lecture7 use case modeling
Shahid Riaz1.5K views
Introduction to ER Diagrams von Adri Jovin
Introduction to ER DiagramsIntroduction to ER Diagrams
Introduction to ER Diagrams
Adri Jovin91 views
Mba2216 week 11 data analysis part 03 appendix von Stephen Ong
Mba2216 week 11 data analysis part 03 appendixMba2216 week 11 data analysis part 03 appendix
Mba2216 week 11 data analysis part 03 appendix
Stephen Ong917 views
An experimental study of feature von ijscai
An experimental study of featureAn experimental study of feature
An experimental study of feature
ijscai217 views

Similar a Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling

Database design von
Database designDatabase design
Database designFLYMAN TECHNOLOGY LIMITED
665 views40 Folien
Data Models von
Data ModelsData Models
Data ModelsRIAH ENCARNACION
373 views21 Folien
Entity Relationship Diagrams von
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship DiagramsHelp With Paper Writing Singapore
4 views22 Folien
Conceptual Data Modeling von
Conceptual Data ModelingConceptual Data Modeling
Conceptual Data ModelingDr. Thippeswamy S.
64 views12 Folien
Entity-Relationship Data Model von
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data ModelBishrul Haq
593 views22 Folien
dbms mannual.pdf von
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdfDevidasBhere
3 views62 Folien

Similar a Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling(20)

Entity-Relationship Data Model von Bishrul Haq
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data Model
Bishrul Haq593 views
ICT DBA3 09 0710 Model Data Objects.pdf von Infotech27
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
Infotech2710 views
chapter 3-Data Modelling using Entity Relationship .pdf von MisganawAbeje1
chapter 3-Data Modelling using Entity Relationship .pdfchapter 3-Data Modelling using Entity Relationship .pdf
chapter 3-Data Modelling using Entity Relationship .pdf
MisganawAbeje17 views
D I T211 Chapter 3 von askme
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme4.3K views
Systems Theory And System Theory von Julie Brown
Systems Theory And System TheorySystems Theory And System Theory
Systems Theory And System Theory
Julie Brown2 views

Más de babak danyal

applist von
applistapplist
applistbabak danyal
1.1K views2 Folien
Easy Steps to implement UDP Server and Client Sockets von
Easy Steps to implement UDP Server and Client SocketsEasy Steps to implement UDP Server and Client Sockets
Easy Steps to implement UDP Server and Client Socketsbabak danyal
8K views11 Folien
Java IO Package and Streams von
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streamsbabak danyal
2.3K views8 Folien
Swing and Graphical User Interface in Java von
Swing and Graphical User Interface in JavaSwing and Graphical User Interface in Java
Swing and Graphical User Interface in Javababak danyal
3.3K views29 Folien
Tcp sockets von
Tcp socketsTcp sockets
Tcp socketsbabak danyal
1.7K views13 Folien
block ciphers and the des von
block ciphers and the desblock ciphers and the des
block ciphers and the desbabak danyal
2.1K views69 Folien

Más de babak danyal(20)

Easy Steps to implement UDP Server and Client Sockets von babak danyal
Easy Steps to implement UDP Server and Client SocketsEasy Steps to implement UDP Server and Client Sockets
Easy Steps to implement UDP Server and Client Sockets
babak danyal8K views
Java IO Package and Streams von babak danyal
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streams
babak danyal2.3K views
Swing and Graphical User Interface in Java von babak danyal
Swing and Graphical User Interface in JavaSwing and Graphical User Interface in Java
Swing and Graphical User Interface in Java
babak danyal3.3K views
block ciphers and the des von babak danyal
block ciphers and the desblock ciphers and the des
block ciphers and the des
babak danyal2.1K views
key distribution in network security von babak danyal
key distribution in network securitykey distribution in network security
key distribution in network security
babak danyal36.4K views
Lecture10 Signal and Systems von babak danyal
Lecture10 Signal and SystemsLecture10 Signal and Systems
Lecture10 Signal and Systems
babak danyal2.5K views
Lecture8 Signal and Systems von babak danyal
Lecture8 Signal and SystemsLecture8 Signal and Systems
Lecture8 Signal and Systems
babak danyal1.7K views
Lecture7 Signal and Systems von babak danyal
Lecture7 Signal and SystemsLecture7 Signal and Systems
Lecture7 Signal and Systems
babak danyal3.1K views
Lecture6 Signal and Systems von babak danyal
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systems
babak danyal1.9K views
Lecture5 Signal and Systems von babak danyal
Lecture5 Signal and SystemsLecture5 Signal and Systems
Lecture5 Signal and Systems
babak danyal3.7K views
Lecture4 Signal and Systems von babak danyal
Lecture4  Signal and SystemsLecture4  Signal and Systems
Lecture4 Signal and Systems
babak danyal3.4K views
Lecture3 Signal and Systems von babak danyal
Lecture3 Signal and SystemsLecture3 Signal and Systems
Lecture3 Signal and Systems
babak danyal3.7K views
Lecture2 Signal and Systems von babak danyal
Lecture2 Signal and SystemsLecture2 Signal and Systems
Lecture2 Signal and Systems
babak danyal4.6K views
Lecture1 Intro To Signa von babak danyal
Lecture1 Intro To SignaLecture1 Intro To Signa
Lecture1 Intro To Signa
babak danyal928 views
Lecture9 Signal and Systems von babak danyal
Lecture9 Signal and SystemsLecture9 Signal and Systems
Lecture9 Signal and Systems
babak danyal1.6K views
Cns 13f-lec03- Classical Encryption Techniques von babak danyal
Cns 13f-lec03- Classical Encryption TechniquesCns 13f-lec03- Classical Encryption Techniques
Cns 13f-lec03- Classical Encryption Techniques
babak danyal1.7K views
Classical Encryption Techniques in Network Security von babak danyal
Classical Encryption Techniques in Network SecurityClassical Encryption Techniques in Network Security
Classical Encryption Techniques in Network Security
babak danyal55.3K views

Último

Narration lesson plan von
Narration lesson planNarration lesson plan
Narration lesson planTARIQ KHAN
59 views11 Folien
Thanksgiving!.pdf von
Thanksgiving!.pdfThanksgiving!.pdf
Thanksgiving!.pdfEnglishCEIPdeSigeiro
137 views17 Folien
Google solution challenge..pptx von
Google solution challenge..pptxGoogle solution challenge..pptx
Google solution challenge..pptxChitreshGyanani1
135 views18 Folien
UNIDAD 3 6º C.MEDIO.pptx von
UNIDAD 3 6º C.MEDIO.pptxUNIDAD 3 6º C.MEDIO.pptx
UNIDAD 3 6º C.MEDIO.pptxMarcosRodriguezUcedo
124 views32 Folien
Relationship of psychology with other subjects. von
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.palswagata2003
48 views16 Folien
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively von
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyPECB
598 views18 Folien

Último(20)

Narration lesson plan von TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN59 views
Relationship of psychology with other subjects. von palswagata2003
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.
palswagata200348 views
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively von PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 598 views
11.30.23 Poverty and Inequality in America.pptx von mary850239
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptx
mary850239167 views
Structure and Functions of Cell.pdf von Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan701 views
REPRESENTATION - GAUNTLET.pptx von iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood107 views
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB... von Nguyen Thanh Tu Collection
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
Monthly Information Session for MV Asterix (November) von Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC58 views
CUNY IT Picciano.pptx von apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 views
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx von ISSIP
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxEIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
ISSIP379 views
Psychology KS4 von WestHatch
Psychology KS4Psychology KS4
Psychology KS4
WestHatch90 views

Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling

  • 1. SE-381 Software Engineering BEIT-V Lecture # 19 (Entity Relationship and Attribute Analysis & Data Modelling)
  • 2. Data Modeling – Data Modeling, Semantic Modeling, Entity Relationship Diagrams, Entity Relationship Attribute Modeling, Object Data Classes etc are various names for the same technique, commonly known as Data Modeling. – Different authors have used slightly different notations to represent Entities, Relationships and Object Data Classes – Notations used by Chen 1976 (the founder of the technique) and Baynon-Davies 1989 are followed. Some unlearning and re- learning may be required to those who have already learnt and used it in their Data Bases course – Data Modeling supplements the Process Modeling technique and helps in identifying the data structures on which the system is to be built
  • 3. Entity Relationship Modelling • One of the Oldest techniques used in Database and Information Systems Design, proposed by Chen 1976 • Representation of ‘Real World’ in terms of Entities, Attributes and Relationships between the Entities An Entity is a thing which the enterprise recognizes as being capable of an independent existence and which can be uniquely identified (Howe, 1983) An Entity may be an Object, concept or an event having characteristics of independent existence and unique identification, and should have data items or attributes associated with it. An Entity together with its attributes define an Entity Type of which there may be many instances. Similarly, a Relationship Type may have many instances, where occurrences of allied Entities are participating
  • 4. Relationship A Relationship is an association between two or more entities. (Howe, 1983) The common attribute in two Entities, indicates they have some relationship. For N entities, there could be N(N-1)/2 possible relations, as every Entity being part of the systems will be related to every other entity so only direct relationships between the Entities are considered Parent Child School GoesSponsors Parent and Child and Child and School have direct relationships, but the relationship between Parent and School is indirect or derived relationship which should not be considered
  • 5. Cardinality or Degree of the Relationship • It is number of instances of the respective entity type participating in the relationship. • It can be one-to-one (1:1), one-to-many (1:M) or many-to-many (M:N) • Crow-Foot notation used to represent cardinality Class Student CourseStudent Cheque PaymentBrings Consists_of Read
  • 6. Membership Class or Optionality • Membership is Mandatory if every occurrence of the entity participates in the relationship • Membership is Optional if some of the instances of respective entity do exist but don’t participate in the relationship, or some occurrences of the entity can exist independently – Every Employee must be employed within a Department – A Department may exist without any (full-time) Employee • For Mandatory Entity we put in ‘a filled dot’ within the Entity, and for Optional Entity it is put outside on the Relationship Cheque PaymentBrings Employee DeprttWorks Cheque PaymentBrings
  • 7. Assignment Rules 1:1 Relationship – Membership Mandatory on Both Entity Types – Membership Mandatory for only one Entity Type Cheque PaymentBrings Single table is needed Cheque (Cheque_no, date, sign, amount, … , Payment_Id, …) Employee CarUses Two tables needed, post the identifier of Optional into Mandatory Employee (Employee_no, Name, Designation, …) Car (Reg_no, Model, Capacity, …., Employee_no )
  • 8. Assignment Rules – Membership Optional for both Entity Types Employee CarUses Three tables needed, one for each Entity and one for Relationship Employee (Employee_no, Name, Designation, …) Car (Reg_No, Model, Capacity, …. ) Uses ( Employee_no, Reg_no, …., Mileage_used_by)
  • 9. Assignment Rules 1:M Relationship – Membership of many ‘Entity’ is Mandatory, Ward PatientContains Two tables needed Ward (Ward_no, Location, type, …) Patient ( Patient_Id,, Name, date_of_Admiss, …, Ward_no) – Membership of many ‘Entity’ is also Optional Ward PatientContains Three tables needed Ward (Ward_no, Location, type, …) Patient ( Patient_Id,, Name, date_of_Admiss, …) Contains (Patient_no, Ward_no)
  • 10. Assignment Rules M:N Relationship – Will need Three Tables irrespective of membership class Teacher StudentTutors Three tables needed Teacher (Teacher_name, Subject, Qualification …) Student ( Reg_no,, Name, date_of_Admiss, Semester …) Tutors (Teacher_name, Reg_no)
  • 11. Drawing of E-R Diagrams Following steps be followed to draw E-R Diagrams 1. Identify Entities from the problem definition 2. Investigate and record their inter-relationships 3. Draw E-R diagram showing Entities and Relationships 4. Indicate Degree and Membership Class of each Relationship 5. Validate the ERD against the System Requirements 6. Rationalize 7. Revalidate 8. Using Assignment Rules, convert the diagram into set of fully normalized tables
  • 12. ERD - A Case Study Design an appropriate information system for the patients’ appointments and operations activities of a large general hospital. Initial analysis provide the following brief description of the existing manual system: • Patients are dealt with by an appointment system • Patients must make an appointment for a clinic session held at one of the hospital’s clinics • Doctors are allocated one or more appointments within a clinic session, but only one doctor will be present at each appointment • Operations are scheduled and allocated to one of a number of theatre sessions held in the hospital’s operating theatres, each doctor may perform a number of given operations on patients 1. First identify the set of Entities from the above description
  • 13. Entities of the System HOSPITAL CLINIC CLINIC-SESSION APPOINTMENT PATIENT DOCTOR OPERATION OPERATING-THEATRE THEATRE-SESSION 2. Investigate and record Inter-relationships How many total relations are possible, Identify the direct Relations 3. Draw E-R diagram showing Entities and Relationships
  • 15. Eliminate the Indirect Relationships 4. Indicate and draw the Optionality of the relationships
  • 17. Set of Tables Generated
  • 18. References 1. NIIT (2005); System Analysis and Design for Software Engineers; Printice-Hall of India, New Delhi 2. Paul Beynon-Davies (1989); Information Systems Development, Macmillan, London, UK; Ch-5 Entity – Relationship Diagrams pp:38-54 3. P. P-S Chen (1976); the Entity-Relationship Model – Toward a Unified View of Data; ACM Transactions on Database Systems 1, pp:9-36 4. Any book on Data Bases or Data Modeling