SlideShare a Scribd company logo
1 of 5
Download to read offline
DATA MODELLING
• Part of a DFD is a data store, but we did not
say very much about these.
• They are equivalent to files or databases, but
we did not look at how the data is structured.
That is the subject of this unit. Data modelling,
or entity modelling, is about entities and how
they are related. The diagram which is used to
show these relationships is called, naturally
enough, the entity-relationship diagram or E-R
diagram for short.
ENTITIES, ATTRIBUTES AND
RELATIONSHIPS
• An entity is a thing of interest about which data is
kept. Therefore, for example:
– in a sales order processing system, a CUSTOMER would
be an entity
– in a library system, a BOOK would be an entity
– in a hospital system, a PATIENT would be an entity.
• Entities are often equivalent to files in a computer
system, so you would expect a Customer file, a
Book file and a Patient file. The data kept about an
entity make up the attributes of that entity.
Entity - Attributes
An attribute is an item of data held about an entity. Using our examples from
above:
– for a customer, some attributes would be customer name, customer address, credit
limit
– for a book, some attributes would be title, author, publisher, ISBN
– for a patient, some attributes would be name, address, doctor.
• However, each individual customer, patient and book needs to be identified
uniquely. So it is normal to have one (or more) special attributes which can be
used as an identifier. This is the key attribute and it often has to be made up
specially.
A key attribute uniquely identifies a specific occurrence of an entity. Codes and
numbers are often used for these key attributes, since they themselves can also be
unique. Again using the examples from above, the unique identifier (or, simply, the
"key") may be Customer Code, Patient Number and ISBN. When the attributes of an
entity are listed, the key attribute is usually highlighted in bold or underlined as
below:
Entity Attributes
CUSTOMER Customer Code, customer name, customer address, credit limit
BOOK ISBN, title, author, publisher
PATIENT Patient Number, patient name, patient address, doctor
Activity 1
The following describes some of the procedures involved in a
direct line car insurance company.
A potential customer telephones the company and gives
details of the vehicle to be insured. This results in a quotation
that remains on file for one month. If the customer accepts the
quotation within one month it becomes a policy. If an accident
occurs the customer contacts the company who send out a
claim form. The customer completes the claim form, sends it
back to the company who then files it as a claim.
The following nouns or compound nouns are present in the
above description: Customer, company, details, vehicle,
quotation, file, month, policy, accident, claim form, claim.
Which of the above are likely to be entities?
ENTITY RELATIONSHIPS
• Entities are related to each other and an E-R
diagram for a system shows all the entities
and all the relationships between these
entities. Consider the following scenarios.
• Read further on data modeling

More Related Content

Viewers also liked

Technologies in booktrade
Technologies in booktradeTechnologies in booktrade
Technologies in booktradeOMWOMA JACKSON
 
Sn presentatie arjan erkel ontgijzeling
Sn presentatie arjan erkel  ontgijzelingSn presentatie arjan erkel  ontgijzeling
Sn presentatie arjan erkel ontgijzelingschoevers
 
Sytem analysis and design take away cat
Sytem analysis and design take away catSytem analysis and design take away cat
Sytem analysis and design take away catOMWOMA JACKSON
 
Let us c yashwant kanetkar(1)
Let us c   yashwant kanetkar(1)Let us c   yashwant kanetkar(1)
Let us c yashwant kanetkar(1)OMWOMA JACKSON
 
L10 system implementation
L10 system implementationL10 system implementation
L10 system implementationOMWOMA JACKSON
 
L9 quality assurance and documentation
L9 quality assurance and documentationL9 quality assurance and documentation
L9 quality assurance and documentationOMWOMA JACKSON
 
Hoyas de barro
Hoyas de barroHoyas de barro
Hoyas de barrohdzdanny
 
GitHubでプロジェクトを共有してみよう
GitHubでプロジェクトを共有してみようGitHubでプロジェクトを共有してみよう
GitHubでプロジェクトを共有してみようToshimichi Suekane
 
Why records management is important
Why records management is importantWhy records management is important
Why records management is importantOMWOMA JACKSON
 
The Human Side of Microservices
The Human Side of MicroservicesThe Human Side of Microservices
The Human Side of MicroservicesC4Media
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsOMWOMA JACKSON
 
R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4
R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4
R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4Raimondo Villano
 
R. Villano - Rotary International
R. Villano - Rotary International R. Villano - Rotary International
R. Villano - Rotary International Raimondo Villano
 
Raimondo Villano - Storia della pubblicità farmaceutica
Raimondo Villano - Storia della pubblicità farmaceuticaRaimondo Villano - Storia della pubblicità farmaceutica
Raimondo Villano - Storia della pubblicità farmaceuticaRaimondo Villano
 
Applying Java 8 Idioms to Existing Code
Applying Java 8 Idioms to Existing CodeApplying Java 8 Idioms to Existing Code
Applying Java 8 Idioms to Existing CodeC4Media
 

Viewers also liked (20)

Technologies in booktrade
Technologies in booktradeTechnologies in booktrade
Technologies in booktrade
 
Aicte notification
Aicte notificationAicte notification
Aicte notification
 
Kenya vision 2030
Kenya vision 2030Kenya vision 2030
Kenya vision 2030
 
Sn presentatie arjan erkel ontgijzeling
Sn presentatie arjan erkel  ontgijzelingSn presentatie arjan erkel  ontgijzeling
Sn presentatie arjan erkel ontgijzeling
 
Ordering 4
Ordering 4Ordering 4
Ordering 4
 
Sytem analysis and design take away cat
Sytem analysis and design take away catSytem analysis and design take away cat
Sytem analysis and design take away cat
 
Let us c yashwant kanetkar(1)
Let us c   yashwant kanetkar(1)Let us c   yashwant kanetkar(1)
Let us c yashwant kanetkar(1)
 
E-Business
E-BusinessE-Business
E-Business
 
L10 system implementation
L10 system implementationL10 system implementation
L10 system implementation
 
Natal varejo
Natal varejoNatal varejo
Natal varejo
 
L9 quality assurance and documentation
L9 quality assurance and documentationL9 quality assurance and documentation
L9 quality assurance and documentation
 
Hoyas de barro
Hoyas de barroHoyas de barro
Hoyas de barro
 
GitHubでプロジェクトを共有してみよう
GitHubでプロジェクトを共有してみようGitHubでプロジェクトを共有してみよう
GitHubでプロジェクトを共有してみよう
 
Why records management is important
Why records management is importantWhy records management is important
Why records management is important
 
The Human Side of Microservices
The Human Side of MicroservicesThe Human Side of Microservices
The Human Side of Microservices
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentals
 
R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4
R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4
R. Villano & A. Carosella - Rotary International - L'uomo come fine - demo 4
 
R. Villano - Rotary International
R. Villano - Rotary International R. Villano - Rotary International
R. Villano - Rotary International
 
Raimondo Villano - Storia della pubblicità farmaceutica
Raimondo Villano - Storia della pubblicità farmaceuticaRaimondo Villano - Storia della pubblicità farmaceutica
Raimondo Villano - Storia della pubblicità farmaceutica
 
Applying Java 8 Idioms to Existing Code
Applying Java 8 Idioms to Existing CodeApplying Java 8 Idioms to Existing Code
Applying Java 8 Idioms to Existing Code
 

Similar to L8 entity relationship

Profisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdf
Profisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdfProfisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdf
Profisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdfssuser2ae7ea2
 
ICT211 Database Design.docx
ICT211 Database Design.docxICT211 Database Design.docx
ICT211 Database Design.docxwrite4
 
Part A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdfPart A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdfsdfghj21
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009Cathie101
 
Data MiningData MiningData MiningData Mining
Data MiningData MiningData MiningData MiningData MiningData MiningData MiningData Mining
Data MiningData MiningData MiningData Miningabdulraqeebalareqi1
 
DB_REPORT_final_revised
DB_REPORT_final_revisedDB_REPORT_final_revised
DB_REPORT_final_revisedRohan Singla
 
Statistical Learning - Introduction.pptx
Statistical Learning - Introduction.pptxStatistical Learning - Introduction.pptx
Statistical Learning - Introduction.pptxJayaprakashGururaj
 
CFPB Consumer Complaints Report - Tableau
CFPB Consumer Complaints Report - TableauCFPB Consumer Complaints Report - Tableau
CFPB Consumer Complaints Report - TableauNisheet Mahajan
 
2014 cs data collection guide (1)
2014 cs data collection guide (1)2014 cs data collection guide (1)
2014 cs data collection guide (1)Tamer Turgut
 
Law homework help
Law homework helpLaw homework help
Law homework helpgaryantione
 
Law homework help
Law homework helpLaw homework help
Law homework helppowellabril
 
Law homework help
Law homework helpLaw homework help
Law homework helpalicalland
 

Similar to L8 entity relationship (20)

Profisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdf
Profisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdfProfisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdf
Profisee_Ebook_MasterDataWhatWhyHow_11x8.5.pdf
 
ICT211 Database Design.docx
ICT211 Database Design.docxICT211 Database Design.docx
ICT211 Database Design.docx
 
Part A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdfPart A Entity Relationship Diagram This new system would.pdf
Part A Entity Relationship Diagram This new system would.pdf
 
ERD.pdf
ERD.pdfERD.pdf
ERD.pdf
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009
 
Relational Database
Relational DatabaseRelational Database
Relational Database
 
Data MiningData MiningData MiningData Mining
Data MiningData MiningData MiningData MiningData MiningData MiningData MiningData Mining
Data MiningData MiningData MiningData Mining
 
DB_REPORT_final_revised
DB_REPORT_final_revisedDB_REPORT_final_revised
DB_REPORT_final_revised
 
Statistical Learning - Introduction.pptx
Statistical Learning - Introduction.pptxStatistical Learning - Introduction.pptx
Statistical Learning - Introduction.pptx
 
Law homework help
Law homework helpLaw homework help
Law homework help
 
Law homework help
Law homework helpLaw homework help
Law homework help
 
171846965 projects
171846965 projects171846965 projects
171846965 projects
 
Data Mining Lec1.pptx
Data Mining Lec1.pptxData Mining Lec1.pptx
Data Mining Lec1.pptx
 
CFPB Consumer Complaints Report - Tableau
CFPB Consumer Complaints Report - TableauCFPB Consumer Complaints Report - Tableau
CFPB Consumer Complaints Report - Tableau
 
2014 cs data collection guide (1)
2014 cs data collection guide (1)2014 cs data collection guide (1)
2014 cs data collection guide (1)
 
The Business Case for Document Integrity
The Business Case for Document Integrity The Business Case for Document Integrity
The Business Case for Document Integrity
 
E space abstract
E   space abstractE   space abstract
E space abstract
 
Law homework help
Law homework helpLaw homework help
Law homework help
 
Law homework help
Law homework helpLaw homework help
Law homework help
 
Law homework help
Law homework helpLaw homework help
Law homework help
 

L8 entity relationship

  • 1. DATA MODELLING • Part of a DFD is a data store, but we did not say very much about these. • They are equivalent to files or databases, but we did not look at how the data is structured. That is the subject of this unit. Data modelling, or entity modelling, is about entities and how they are related. The diagram which is used to show these relationships is called, naturally enough, the entity-relationship diagram or E-R diagram for short.
  • 2. ENTITIES, ATTRIBUTES AND RELATIONSHIPS • An entity is a thing of interest about which data is kept. Therefore, for example: – in a sales order processing system, a CUSTOMER would be an entity – in a library system, a BOOK would be an entity – in a hospital system, a PATIENT would be an entity. • Entities are often equivalent to files in a computer system, so you would expect a Customer file, a Book file and a Patient file. The data kept about an entity make up the attributes of that entity.
  • 3. Entity - Attributes An attribute is an item of data held about an entity. Using our examples from above: – for a customer, some attributes would be customer name, customer address, credit limit – for a book, some attributes would be title, author, publisher, ISBN – for a patient, some attributes would be name, address, doctor. • However, each individual customer, patient and book needs to be identified uniquely. So it is normal to have one (or more) special attributes which can be used as an identifier. This is the key attribute and it often has to be made up specially. A key attribute uniquely identifies a specific occurrence of an entity. Codes and numbers are often used for these key attributes, since they themselves can also be unique. Again using the examples from above, the unique identifier (or, simply, the "key") may be Customer Code, Patient Number and ISBN. When the attributes of an entity are listed, the key attribute is usually highlighted in bold or underlined as below: Entity Attributes CUSTOMER Customer Code, customer name, customer address, credit limit BOOK ISBN, title, author, publisher PATIENT Patient Number, patient name, patient address, doctor
  • 4. Activity 1 The following describes some of the procedures involved in a direct line car insurance company. A potential customer telephones the company and gives details of the vehicle to be insured. This results in a quotation that remains on file for one month. If the customer accepts the quotation within one month it becomes a policy. If an accident occurs the customer contacts the company who send out a claim form. The customer completes the claim form, sends it back to the company who then files it as a claim. The following nouns or compound nouns are present in the above description: Customer, company, details, vehicle, quotation, file, month, policy, accident, claim form, claim. Which of the above are likely to be entities?
  • 5. ENTITY RELATIONSHIPS • Entities are related to each other and an E-R diagram for a system shows all the entities and all the relationships between these entities. Consider the following scenarios. • Read further on data modeling