SlideShare a Scribd company logo
1 of 16
Entity Relationship(ER)Entity Relationship(ER)
DiagramDiagram
 An entity-relationship diagram isAn entity-relationship diagram is
aa data modelingdata modeling technique thattechnique that
creates a graphical representation ofcreates a graphical representation of
the entities, and the relationshipsthe entities, and the relationships
between entities, within anbetween entities, within an
information system.information system.
ER-DiagramER-Diagram
Sample ER-DiagramSample ER-Diagram
 An E-R Diagram shows a database’sAn E-R Diagram shows a database’s
entities and the relationships amongentities and the relationships among
the entities in a symbolic, visual way.the entities in a symbolic, visual way.
 Documents a project or application andDocuments a project or application and
serves as its foundationserves as its foundation
 Clarify the system/application’s featuresClarify the system/application’s features
 Provide a basis for evaluatingProvide a basis for evaluating
development optionsdevelopment options
Purpose of ERDs
Entity:Entity:
A class of persons, places, objects, events, orA class of persons, places, objects, events, or
concepts about which we need to capture and storeconcepts about which we need to capture and store
data.data.
 Named by a singular noun.Named by a singular noun.
PersonsPersons: agency, contractor, customer,: agency, contractor, customer,
department, division, employee,department, division, employee,
instructor, student, supplier.instructor, student, supplier.
PlacesPlaces: sales region, building, room,: sales region, building, room,
branch office, campus.branch office, campus.
ObjectsObjects: book, machine, part, product, raw material, software license,: book, machine, part, product, raw material, software license,
software package, tool, vehicle model, vehicle.software package, tool, vehicle model, vehicle.
EventsEvents: application, award, cancellation, class, flight, invoice, order,: application, award, cancellation, class, flight, invoice, order,
registration, renewal, requisition, reservation, sale, trip.registration, renewal, requisition, reservation, sale, trip.
ConceptsConcepts: account, block of time, bond, course, fund, qualification, stock.: account, block of time, bond, course, fund, qualification, stock.
Components of ERD
Relationship:Relationship:
natural business association that exists between one ornatural business association that exists between one or
more entities.more entities.
The relationship may represent an event that links theThe relationship may represent an event that links the
entities or merely a logical affinity that exists between theentities or merely a logical affinity that exists between the
entities.entities.
Components of ERD Contd:
CardinalityCardinality
The minimum and maximum number of occurrences of oneThe minimum and maximum number of occurrences of one
entity that may be related to a single occurrence of the otherentity that may be related to a single occurrence of the other
entity.entity.
Because all relationships are bidirectional, cardinality mustBecause all relationships are bidirectional, cardinality must
be defined in both directions for every relationship.be defined in both directions for every relationship.
Components of ERD
Bidirectional
AttributeAttribute::
A descriptive property orA descriptive property or
characteristic of an entity.characteristic of an entity.
Synonyms includeSynonyms include elementelement,,
propertyproperty, and, and fieldfield..
Just as a physical studentJust as a physical student
can have attributes, such ascan have attributes, such as
hair color, height, etc., datahair color, height, etc., data
entity has data attributesentity has data attributes
Compound attribute:Compound attribute:
 An attribute that consists ofAn attribute that consists of
other attributes. Synonyms inother attributes. Synonyms in
different data modelingdifferent data modeling
languages are numerous:languages are numerous:
concatenated attribute,concatenated attribute,
composite attribute, and datacomposite attribute, and data
structure.structure.
Components of ERD
Cardinality Notations:Cardinality Notations:
Components of ERD
Degree:
The number of entities that participate in the relationship.The number of entities that participate in the relationship.
Components of ERD
Associative entityAssociative entity::
An entity thatAn entity that
inherits primary keyinherits primary key
from more than onefrom more than one
other entity (calledother entity (called
parents).parents).
Components of ERD
Foreign key:Foreign key:
A primary key of an entity that is used in another entity toA primary key of an entity that is used in another entity to
identify instances of a relationship.identify instances of a relationship.
A foreign key is a primary key of one entity that isA foreign key is a primary key of one entity that is
contributed to (duplicated in) another entity to identifycontributed to (duplicated in) another entity to identify
instances of a relationship.instances of a relationship.
A foreign key always matches the primary key in the anotherA foreign key always matches the primary key in the another
entityentity
A foreign key may or may not be unique (generally not)A foreign key may or may not be unique (generally not)
The entity with the foreign key is called the child.The entity with the foreign key is called the child.
The entity with the matching primary key is called theThe entity with the matching primary key is called the
parent.parent.
Components of ERD
Parent entity
A data entity that contributes one or more attributes to
another entity, called the child. In a one-to-many relationship
the parent is the entity on the "one" side.
Child entity
A data entity that derives one or more attributes from
another entity, called the parent. In a one-to-many
relationship the child is the entity on the "many" side.
Components of ERD
The steps involved in creating an ERD are:
Identify the entities.
Determine all significant interactions.
Analyze the nature of the interactions.
Draw the ERD.
ERD Steps
 A good data model is simple.A good data model is simple.
 Data attributes that describe any given entityData attributes that describe any given entity
should describe only that entity.should describe only that entity.
 Each attribute of an entity instance can haveEach attribute of an entity instance can have
only one value.only one value.
 A good data model is essentially non-redundant.A good data model is essentially non-redundant.
 Each data attribute, other than foreign keys,Each data attribute, other than foreign keys,
describes at most one entity.describes at most one entity.
 Look for the same attribute recorded moreLook for the same attribute recorded more
than once under different names.than once under different names.
 A good data model should be flexible andA good data model should be flexible and
adaptable to future needs.adaptable to future needs.
What is a Good Data Model?

More Related Content

What's hot

The Pros and Cons of Social Media
The Pros and Cons of Social MediaThe Pros and Cons of Social Media
The Pros and Cons of Social MediaJeff Davis
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online StoreAhsan Rizwan
 
Online ecommerce website srs
Online ecommerce  website srsOnline ecommerce  website srs
Online ecommerce website srsSM Nurnobi
 
Value Driven Development by Dave Thomas
Value Driven Development by Dave Thomas Value Driven Development by Dave Thomas
Value Driven Development by Dave Thomas Naresh Jain
 
Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRSAman Goel
 
Big Data applications in Health Care
Big Data applications in Health CareBig Data applications in Health Care
Big Data applications in Health CareLeo Barella
 
Social media powerpoint presentation
Social media powerpoint presentationSocial media powerpoint presentation
Social media powerpoint presentationSlideegg
 
Social Media Case Study - Social Listening Report on E-retail Brands
Social Media Case Study - Social Listening Report on E-retail BrandsSocial Media Case Study - Social Listening Report on E-retail Brands
Social Media Case Study - Social Listening Report on E-retail BrandsSocial Samosa
 
Fitness App(PPT) New (1).pptx
Fitness App(PPT) New (1).pptxFitness App(PPT) New (1).pptx
Fitness App(PPT) New (1).pptxscribdtrial3
 
Social Media and Inclusion
Social Media and InclusionSocial Media and Inclusion
Social Media and InclusionJason Scott
 
Acceptable Use Policy - CTAP Training
Acceptable Use Policy - CTAP TrainingAcceptable Use Policy - CTAP Training
Acceptable Use Policy - CTAP TrainingGlenn Hervieux
 
Negative effects of social media
Negative effects of social mediaNegative effects of social media
Negative effects of social medialayni_98
 
Opensource Powerpoint Review.Ppt
Opensource Powerpoint Review.PptOpensource Powerpoint Review.Ppt
Opensource Powerpoint Review.PptViet NguyenHoang
 
Software Cost Estimation Methods:A Review - Persian
Software Cost Estimation Methods:A Review - PersianSoftware Cost Estimation Methods:A Review - Persian
Software Cost Estimation Methods:A Review - PersianMobin Ranjbar
 

What's hot (20)

SlideShare 101
SlideShare 101SlideShare 101
SlideShare 101
 
The Pros and Cons of Social Media
The Pros and Cons of Social MediaThe Pros and Cons of Social Media
The Pros and Cons of Social Media
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
 
Voice assistant ppt
Voice assistant pptVoice assistant ppt
Voice assistant ppt
 
Se file
Se fileSe file
Se file
 
Digital Healthcare - Detailed Presentation PDF
Digital Healthcare - Detailed Presentation PDFDigital Healthcare - Detailed Presentation PDF
Digital Healthcare - Detailed Presentation PDF
 
Online ecommerce website srs
Online ecommerce  website srsOnline ecommerce  website srs
Online ecommerce website srs
 
App development
App developmentApp development
App development
 
Value Driven Development by Dave Thomas
Value Driven Development by Dave Thomas Value Driven Development by Dave Thomas
Value Driven Development by Dave Thomas
 
SRS for Google Pay(Gpay)
SRS for Google Pay(Gpay)SRS for Google Pay(Gpay)
SRS for Google Pay(Gpay)
 
Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRS
 
Big Data applications in Health Care
Big Data applications in Health CareBig Data applications in Health Care
Big Data applications in Health Care
 
Social media powerpoint presentation
Social media powerpoint presentationSocial media powerpoint presentation
Social media powerpoint presentation
 
Social Media Case Study - Social Listening Report on E-retail Brands
Social Media Case Study - Social Listening Report on E-retail BrandsSocial Media Case Study - Social Listening Report on E-retail Brands
Social Media Case Study - Social Listening Report on E-retail Brands
 
Fitness App(PPT) New (1).pptx
Fitness App(PPT) New (1).pptxFitness App(PPT) New (1).pptx
Fitness App(PPT) New (1).pptx
 
Social Media and Inclusion
Social Media and InclusionSocial Media and Inclusion
Social Media and Inclusion
 
Acceptable Use Policy - CTAP Training
Acceptable Use Policy - CTAP TrainingAcceptable Use Policy - CTAP Training
Acceptable Use Policy - CTAP Training
 
Negative effects of social media
Negative effects of social mediaNegative effects of social media
Negative effects of social media
 
Opensource Powerpoint Review.Ppt
Opensource Powerpoint Review.PptOpensource Powerpoint Review.Ppt
Opensource Powerpoint Review.Ppt
 
Software Cost Estimation Methods:A Review - Persian
Software Cost Estimation Methods:A Review - PersianSoftware Cost Estimation Methods:A Review - Persian
Software Cost Estimation Methods:A Review - Persian
 

Viewers also liked

Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2Mudasir Syed
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)tameemyousaf
 
Er diagram practical examples
Er diagram practical examplesEr diagram practical examples
Er diagram practical examplesRahul Khanwani
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagramTech_MX
 
Chap2 practice key
Chap2 practice keyChap2 practice key
Chap2 practice keyIIUM
 
DBMS topics for BCA
DBMS topics for BCADBMS topics for BCA
DBMS topics for BCAAdbay
 
198970820 p-oooooooooo
198970820 p-oooooooooo198970820 p-oooooooooo
198970820 p-oooooooooohomeworkping4
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagramHaseeb
 
Entity Relationship Diagram presentation
Entity Relationship Diagram presentationEntity Relationship Diagram presentation
Entity Relationship Diagram presentationSopov Chan
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramShakila Mahjabin
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Example of dfd with answer
Example of dfd with answerExample of dfd with answer
Example of dfd with answerMahmoud Bakeer
 
MATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESMATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESParas Joshi
 

Viewers also liked (19)

Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Er diagram practical examples
Er diagram practical examplesEr diagram practical examples
Er diagram practical examples
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 
Chap2 practice key
Chap2 practice keyChap2 practice key
Chap2 practice key
 
1869495 er diagrams
1869495 er diagrams1869495 er diagrams
1869495 er diagrams
 
DBMS topics for BCA
DBMS topics for BCADBMS topics for BCA
DBMS topics for BCA
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
198970820 p-oooooooooo
198970820 p-oooooooooo198970820 p-oooooooooo
198970820 p-oooooooooo
 
Data model and entity relationship
Data model and entity relationshipData model and entity relationship
Data model and entity relationship
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Entity Relationship Diagram presentation
Entity Relationship Diagram presentationEntity Relationship Diagram presentation
Entity Relationship Diagram presentation
 
Erd practice exercises
Erd practice exercisesErd practice exercises
Erd practice exercises
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Example of dfd with answer
Example of dfd with answerExample of dfd with answer
Example of dfd with answer
 
MATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESMATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURES
 

Similar to PHP mysql Er diagram

Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Typesaakanksha s
 
1 - Database Management System.pdf
1 - Database Management System.pdf1 - Database Management System.pdf
1 - Database Management System.pdfgaurav70287
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxMwangaPrayGod
 
ER Modelling
ER ModellingER Modelling
ER Modellinglubna19
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3askme
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxparimala123
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...Mustafa Kamel Mohammadi
 
Database Management System
Database Management System Database Management System
Database Management System FellowBuddy.com
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxsantosh96234
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2Mukund Trivedi
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)Mukund Trivedi
 

Similar to PHP mysql Er diagram (20)

database.pptx
database.pptxdatabase.pptx
database.pptx
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
 
1 - Database Management System.pdf
1 - Database Management System.pdf1 - Database Management System.pdf
1 - Database Management System.pdf
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Er model
Er modelEr model
Er model
 
Dbms ppt
Dbms pptDbms ppt
Dbms ppt
 
ER Modelling
ER ModellingER Modelling
ER Modelling
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Dbms
DbmsDbms
Dbms
 
Database Management System
Database Management System Database Management System
Database Management System
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
Erd chapter 3
Erd chapter 3Erd chapter 3
Erd chapter 3
 
database
databasedatabase
database
 
Entity relation(1)
Entity relation(1)Entity relation(1)
Entity relation(1)
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptx
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)
 

More from Mudasir Syed

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php Mudasir Syed
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2Mudasir Syed
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1Mudasir Syed
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDFMudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2Mudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2Mudasir Syed
 
Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHPMudasir Syed
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1 Mudasir Syed
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminMudasir Syed
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joinsMudasir Syed
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction databaseMudasir Syed
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1Mudasir Syed
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatinMudasir Syed
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functionsMudasir Syed
 
Form validation with built in functions
Form validation with built in functions Form validation with built in functions
Form validation with built in functions Mudasir Syed
 
Form validation server side
Form validation server side Form validation server side
Form validation server side Mudasir Syed
 

More from Mudasir Syed (20)

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1
 
Ajax
Ajax Ajax
Ajax
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDF
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHP
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
 
Sql select
Sql select Sql select
Sql select
 
PHP mysql Sql
PHP mysql  SqlPHP mysql  Sql
PHP mysql Sql
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joins
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction database
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatin
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functions
 
Form validation with built in functions
Form validation with built in functions Form validation with built in functions
Form validation with built in functions
 
Form validation server side
Form validation server side Form validation server side
Form validation server side
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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.pptxheathfieldcps1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
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 ModeThiyagu K
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
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
 

PHP mysql Er diagram

  • 1.
  • 3.  An entity-relationship diagram isAn entity-relationship diagram is aa data modelingdata modeling technique thattechnique that creates a graphical representation ofcreates a graphical representation of the entities, and the relationshipsthe entities, and the relationships between entities, within anbetween entities, within an information system.information system. ER-DiagramER-Diagram
  • 5.  An E-R Diagram shows a database’sAn E-R Diagram shows a database’s entities and the relationships amongentities and the relationships among the entities in a symbolic, visual way.the entities in a symbolic, visual way.  Documents a project or application andDocuments a project or application and serves as its foundationserves as its foundation  Clarify the system/application’s featuresClarify the system/application’s features  Provide a basis for evaluatingProvide a basis for evaluating development optionsdevelopment options Purpose of ERDs
  • 6. Entity:Entity: A class of persons, places, objects, events, orA class of persons, places, objects, events, or concepts about which we need to capture and storeconcepts about which we need to capture and store data.data.  Named by a singular noun.Named by a singular noun. PersonsPersons: agency, contractor, customer,: agency, contractor, customer, department, division, employee,department, division, employee, instructor, student, supplier.instructor, student, supplier. PlacesPlaces: sales region, building, room,: sales region, building, room, branch office, campus.branch office, campus. ObjectsObjects: book, machine, part, product, raw material, software license,: book, machine, part, product, raw material, software license, software package, tool, vehicle model, vehicle.software package, tool, vehicle model, vehicle. EventsEvents: application, award, cancellation, class, flight, invoice, order,: application, award, cancellation, class, flight, invoice, order, registration, renewal, requisition, reservation, sale, trip.registration, renewal, requisition, reservation, sale, trip. ConceptsConcepts: account, block of time, bond, course, fund, qualification, stock.: account, block of time, bond, course, fund, qualification, stock. Components of ERD
  • 7. Relationship:Relationship: natural business association that exists between one ornatural business association that exists between one or more entities.more entities. The relationship may represent an event that links theThe relationship may represent an event that links the entities or merely a logical affinity that exists between theentities or merely a logical affinity that exists between the entities.entities. Components of ERD Contd:
  • 8. CardinalityCardinality The minimum and maximum number of occurrences of oneThe minimum and maximum number of occurrences of one entity that may be related to a single occurrence of the otherentity that may be related to a single occurrence of the other entity.entity. Because all relationships are bidirectional, cardinality mustBecause all relationships are bidirectional, cardinality must be defined in both directions for every relationship.be defined in both directions for every relationship. Components of ERD Bidirectional
  • 9. AttributeAttribute:: A descriptive property orA descriptive property or characteristic of an entity.characteristic of an entity. Synonyms includeSynonyms include elementelement,, propertyproperty, and, and fieldfield.. Just as a physical studentJust as a physical student can have attributes, such ascan have attributes, such as hair color, height, etc., datahair color, height, etc., data entity has data attributesentity has data attributes Compound attribute:Compound attribute:  An attribute that consists ofAn attribute that consists of other attributes. Synonyms inother attributes. Synonyms in different data modelingdifferent data modeling languages are numerous:languages are numerous: concatenated attribute,concatenated attribute, composite attribute, and datacomposite attribute, and data structure.structure. Components of ERD
  • 11. Degree: The number of entities that participate in the relationship.The number of entities that participate in the relationship. Components of ERD
  • 12. Associative entityAssociative entity:: An entity thatAn entity that inherits primary keyinherits primary key from more than onefrom more than one other entity (calledother entity (called parents).parents). Components of ERD
  • 13. Foreign key:Foreign key: A primary key of an entity that is used in another entity toA primary key of an entity that is used in another entity to identify instances of a relationship.identify instances of a relationship. A foreign key is a primary key of one entity that isA foreign key is a primary key of one entity that is contributed to (duplicated in) another entity to identifycontributed to (duplicated in) another entity to identify instances of a relationship.instances of a relationship. A foreign key always matches the primary key in the anotherA foreign key always matches the primary key in the another entityentity A foreign key may or may not be unique (generally not)A foreign key may or may not be unique (generally not) The entity with the foreign key is called the child.The entity with the foreign key is called the child. The entity with the matching primary key is called theThe entity with the matching primary key is called the parent.parent. Components of ERD
  • 14. Parent entity A data entity that contributes one or more attributes to another entity, called the child. In a one-to-many relationship the parent is the entity on the "one" side. Child entity A data entity that derives one or more attributes from another entity, called the parent. In a one-to-many relationship the child is the entity on the "many" side. Components of ERD
  • 15. The steps involved in creating an ERD are: Identify the entities. Determine all significant interactions. Analyze the nature of the interactions. Draw the ERD. ERD Steps
  • 16.  A good data model is simple.A good data model is simple.  Data attributes that describe any given entityData attributes that describe any given entity should describe only that entity.should describe only that entity.  Each attribute of an entity instance can haveEach attribute of an entity instance can have only one value.only one value.  A good data model is essentially non-redundant.A good data model is essentially non-redundant.  Each data attribute, other than foreign keys,Each data attribute, other than foreign keys, describes at most one entity.describes at most one entity.  Look for the same attribute recorded moreLook for the same attribute recorded more than once under different names.than once under different names.  A good data model should be flexible andA good data model should be flexible and adaptable to future needs.adaptable to future needs. What is a Good Data Model?