SlideShare una empresa de Scribd logo
1 de 18
Entity Relationship Diagram- ERD
JANUARY 2017
Business Economics & Information Technology
Roxana Tadayon
OUTLINE
◼Data
◼Database
◼Database Management system
◼Database Design & Model
◼Entity Relationship Diagram
Entity
Relationship
Cardinality
Attribute
2
◼Data is a collection of facts, such as numbers, words,
measurements, observations or even just descriptions of
things.
◼A picture, image, file, pdf can also be considered data.
What kind of information/data does
Facebook collect from Users?
DATA
3
◼A collection of information organized in a way that allows the
quick selection, sorting, managing, and reorganization of
data.
How can data be stored/organized
on your smartphone?
DATABASE
4
DATABASE MANAGEMENT SYSTEM
◼A database management system (DBMS)
is system software for creating and
managing databases.
◼A DBMS makes it possible for end users to create, read, update, manage and
delete data in a database.
http://db-engines.com/en/ranking 5
◼Database design is the process of producing a detailed DataBase Model
◼A database model defines how the logical structure of a database is modeled
◼The most popular example of a database model
is the Relational model.
◼The three level of data modeling are:
 Conceptual data model identifies the highest-level relationships between different entities (ER-
Diagram)
 Logical data model describes the data in as much detail as possible(Find the relationships
between different entities/ key, Normalization)
 Physical data model represents how the model will be built in the database how data should be
structured and related in a specific DBMS
DATABASE DESIGN & MODEL
6
◼ER-Diagram is a visual representation of data that describes how data is related to
each other
◼ERDs can be used to understand the business domain, clarify business requirements,
and connect business concepts to database structures
◼An ERD consist of four components :
Entity
Relationship
Cardinality
Attribute
https://www.youtube.com/watch?v=c0_9Y8QAstg
Where can ERD be placed in
SDLC?
Entity Relationship Diagram(ERD)
7
Entity
◼An entity is any singular, identifiable and separate object
◼An entity is any object in the system that we want to model
and store information about. such as person, places,
employee, student, lecturer, or events
◼ Entities are represented by rectangles
◼ Identify entities for a college system (KEA)
LECTURERSTUDENT DEPARTMENT COURSE SUBJECT
8
Exercises
Exercise 1
Identify entities for a hospital system
Exercise 2
Identify entities for a library management system
Exercise 3
Identify entities for Facebook
9
◼A relationship shows how two entities share information in the database.
◼A relationship is represented by diamond shape
◼In some cases, entities can be self-linked.
For example, A lecturer
can supervise other
lecturer.
◼ Example: Relationships & Entities for KEA
Relationship
Course
LECTURER
Department
Student
Subject
Manager
10
Exercises
Exercise 4
Identify relationships between entities for the hospital system (from
exercise 1)
Exercise 5
Identify relationships between entities for the library management
system (from exercise 2)
Exercise 6
Identify relationships between entities for Facebook(from exercise
3) 11
◼Cardinality is the number of instances of one entity that can be associated with each instance of
another entity
◼Cardinality must be one of the following types:
One to One
One Department run by one manager or one manager manages only one department
One to Many/ Many to One
Many lecturers Work in one Department or One Department has many lecturers
Many to Many
Many Lecturers Teach many Students or Many students
are taught by many lecturers
Identify cardinality for a college system (KEA)
Department
Student
Manager
DepartmentLecturer
Lecturer
11
1M
M M
Cardinality
12
Cardinality for a college system
Course
LECTURER
Department
Student
Subject Manager
M
1
M
M
1
1
M M1
M
1
M
13
Exercises
Exercise 7
Identify cardinalities between entities for the hospital system
Exercise 8
Identify cardinalities between entities for the library management
system
Exercise 9
Identify cardinalities between entities for Facebook
14
Attribute
◼Attributes are the properties of entities
◼Attributes are represented by ellipses
◼ Every ellipse represents one attribute and is directly connected to its entity (rectangle)
STUDENT
COURSE
Student_ID
Name
City
DOB
Street
Zip_Code
Course_ID
Name
Credits
Room
Gender
Age
Identify cardinality for a college system (KEA)
15
Course
LECTURER
Department
Student
Subject Manager
M
M
M
1
1
1
M1
M
1
M
Name
City
DOB
Street
Zip_
Code
Gender
M
Student_ID
Gender
Name
ID
Subject_Number
Subject_Name
Description
ID
Name Education
Salary
DOB
Course_
ID
Name
Credits Room
Department_
ID
Name
Location
Budget
ERD for KEA
16
Exercises
Exercise 10
Identify attributes of the entities for the hospital system
Exercise 11
Identify attributes of the entities for the library management system
Exercise 12
Identify attributes of the entities for Facebook
17
Assignments
Hand-in Wednesday 8th February
Draw an ER diagram for a Bank Management system
Draw an ER diagram for Amazon
18

Más contenido relacionado

La actualidad más candente

Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databasesBryan Corpuz
 
Be a graduate of information systems
Be a graduate of information systemsBe a graduate of information systems
Be a graduate of information systemsrobbywilliams47
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Conceptsoudesign
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemAmiya9439793168
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and modelssabah N
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Modeloudesign
 
Application of Unified Modelling Language
Application of Unified Modelling LanguageApplication of Unified Modelling Language
Application of Unified Modelling LanguageRasan Samarasinghe
 
Four Types of Data Models
Four Types of Data ModelsFour Types of Data Models
Four Types of Data ModelsDeanna Medina
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
 
Introduction to Data Abstraction
Introduction to Data AbstractionIntroduction to Data Abstraction
Introduction to Data AbstractionDennis Gajo
 
Data abstraction in DBMS
Data abstraction in DBMSData abstraction in DBMS
Data abstraction in DBMSPapan Sarkar
 

La actualidad más candente (20)

DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Different data models
Different data modelsDifferent data models
Different data models
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databases
 
Data models
Data modelsData models
Data models
 
Be a graduate of information systems
Be a graduate of information systemsBe a graduate of information systems
Be a graduate of information systems
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
 
Databases and types of databases
Databases and types of databasesDatabases and types of databases
Databases and types of databases
 
Chapter 3 Entity Relationship Model
Chapter 3 Entity Relationship ModelChapter 3 Entity Relationship Model
Chapter 3 Entity Relationship Model
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
DBMS basics
DBMS basicsDBMS basics
DBMS basics
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
 
Data model
Data modelData model
Data model
 
Data independence
Data independenceData independence
Data independence
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
Application of Unified Modelling Language
Application of Unified Modelling LanguageApplication of Unified Modelling Language
Application of Unified Modelling Language
 
Four Types of Data Models
Four Types of Data ModelsFour Types of Data Models
Four Types of Data Models
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
Introduction to Data Abstraction
Introduction to Data AbstractionIntroduction to Data Abstraction
Introduction to Data Abstraction
 
Database and types of database
Database and types of databaseDatabase and types of database
Database and types of database
 
Data abstraction in DBMS
Data abstraction in DBMSData abstraction in DBMS
Data abstraction in DBMS
 

Similar a Data base design

DBMS-2.pptx
DBMS-2.pptxDBMS-2.pptx
DBMS-2.pptxkingVox
 
DBMS Lecture1.ppt
DBMS Lecture1.pptDBMS Lecture1.ppt
DBMS Lecture1.pptIpsitaSaha9
 
Chapter 7 Basic Data Storage.pptx
Chapter 7 Basic Data Storage.pptxChapter 7 Basic Data Storage.pptx
Chapter 7 Basic Data Storage.pptxNiloyHasan12
 
DBMS-7.pptx
DBMS-7.pptxDBMS-7.pptx
DBMS-7.pptxkingVox
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyvk5985399
 
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.pptxnirajsharmapuneiat
 
Unit1 rdbms study_materials
Unit1 rdbms study_materialsUnit1 rdbms study_materials
Unit1 rdbms study_materialsgayaramesh
 
Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)gayaramesh
 
Introduction to Data Management Powerpoint
Introduction to Data Management PowerpointIntroduction to Data Management Powerpoint
Introduction to Data Management Powerpointichanismo
 
Spatial Database and Database Management System
Spatial Database and Database Management SystemSpatial Database and Database Management System
Spatial Database and Database Management SystemLal Mohammad
 
Foundations of BusinessIntelligence Databases and.docx
Foundations of BusinessIntelligence Databases and.docxFoundations of BusinessIntelligence Databases and.docx
Foundations of BusinessIntelligence Databases and.docxhanneloremccaffery
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Usman Tariq
 
Data modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software DomainData modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software DomainAbdul Ahad
 

Similar a Data base design (20)

DBMS-2.pptx
DBMS-2.pptxDBMS-2.pptx
DBMS-2.pptx
 
DBMS Lecture1.ppt
DBMS Lecture1.pptDBMS Lecture1.ppt
DBMS Lecture1.ppt
 
Chapter 7 Basic Data Storage.pptx
Chapter 7 Basic Data Storage.pptxChapter 7 Basic Data Storage.pptx
Chapter 7 Basic Data Storage.pptx
 
DBMS Part 1.pptx
DBMS Part 1.pptxDBMS Part 1.pptx
DBMS Part 1.pptx
 
DBMS-7.pptx
DBMS-7.pptxDBMS-7.pptx
DBMS-7.pptx
 
Cse ii ii sem
Cse ii ii semCse ii ii sem
Cse ii ii sem
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
 
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
 
Unit1 rdbms study_materials
Unit1 rdbms study_materialsUnit1 rdbms study_materials
Unit1 rdbms study_materials
 
Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)Unit1 rdbms study_materials-converted (1) (1)
Unit1 rdbms study_materials-converted (1) (1)
 
Data Models
Data ModelsData Models
Data Models
 
B01DataMgt.ppt
B01DataMgt.pptB01DataMgt.ppt
B01DataMgt.ppt
 
Introduction to Data Management Powerpoint
Introduction to Data Management PowerpointIntroduction to Data Management Powerpoint
Introduction to Data Management Powerpoint
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
Spatial Database and Database Management System
Spatial Database and Database Management SystemSpatial Database and Database Management System
Spatial Database and Database Management System
 
Foundations of BusinessIntelligence Databases and.docx
Foundations of BusinessIntelligence Databases and.docxFoundations of BusinessIntelligence Databases and.docx
Foundations of BusinessIntelligence Databases and.docx
 
Data models
Data modelsData models
Data models
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
 
Data modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software DomainData modeling 101 - Basics - Software Domain
Data modeling 101 - Basics - Software Domain
 

Último

Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesTimothy Spann
 
convolutional neural network and its applications.pdf
convolutional neural network and its applications.pdfconvolutional neural network and its applications.pdf
convolutional neural network and its applications.pdfSubhamKumar3239
 
Networking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptxNetworking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptxHimangsuNath
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxHaritikaChhatwal1
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data VisualizationKianJazayeri1
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Seán Kennedy
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxThe Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxTasha Penwell
 
Unveiling the Role of Social Media Suspect Investigators in Preventing Online...
Unveiling the Role of Social Media Suspect Investigators in Preventing Online...Unveiling the Role of Social Media Suspect Investigators in Preventing Online...
Unveiling the Role of Social Media Suspect Investigators in Preventing Online...Milind Agarwal
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfblazblazml
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Boston Institute of Analytics
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...Amil Baba Dawood bangali
 
INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingsocarem879
 

Último (20)

Data Analysis Project: Stroke Prediction
Data Analysis Project: Stroke PredictionData Analysis Project: Stroke Prediction
Data Analysis Project: Stroke Prediction
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
 
convolutional neural network and its applications.pdf
convolutional neural network and its applications.pdfconvolutional neural network and its applications.pdf
convolutional neural network and its applications.pdf
 
Networking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptxNetworking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptx
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptx
 
Principles and Practices of Data Visualization
Principles and Practices of Data VisualizationPrinciples and Practices of Data Visualization
Principles and Practices of Data Visualization
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxThe Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
 
Unveiling the Role of Social Media Suspect Investigators in Preventing Online...
Unveiling the Role of Social Media Suspect Investigators in Preventing Online...Unveiling the Role of Social Media Suspect Investigators in Preventing Online...
Unveiling the Role of Social Media Suspect Investigators in Preventing Online...
 
Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
 
INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processing
 

Data base design

  • 1. Entity Relationship Diagram- ERD JANUARY 2017 Business Economics & Information Technology Roxana Tadayon
  • 2. OUTLINE ◼Data ◼Database ◼Database Management system ◼Database Design & Model ◼Entity Relationship Diagram Entity Relationship Cardinality Attribute 2
  • 3. ◼Data is a collection of facts, such as numbers, words, measurements, observations or even just descriptions of things. ◼A picture, image, file, pdf can also be considered data. What kind of information/data does Facebook collect from Users? DATA 3
  • 4. ◼A collection of information organized in a way that allows the quick selection, sorting, managing, and reorganization of data. How can data be stored/organized on your smartphone? DATABASE 4
  • 5. DATABASE MANAGEMENT SYSTEM ◼A database management system (DBMS) is system software for creating and managing databases. ◼A DBMS makes it possible for end users to create, read, update, manage and delete data in a database. http://db-engines.com/en/ranking 5
  • 6. ◼Database design is the process of producing a detailed DataBase Model ◼A database model defines how the logical structure of a database is modeled ◼The most popular example of a database model is the Relational model. ◼The three level of data modeling are:  Conceptual data model identifies the highest-level relationships between different entities (ER- Diagram)  Logical data model describes the data in as much detail as possible(Find the relationships between different entities/ key, Normalization)  Physical data model represents how the model will be built in the database how data should be structured and related in a specific DBMS DATABASE DESIGN & MODEL 6
  • 7. ◼ER-Diagram is a visual representation of data that describes how data is related to each other ◼ERDs can be used to understand the business domain, clarify business requirements, and connect business concepts to database structures ◼An ERD consist of four components : Entity Relationship Cardinality Attribute https://www.youtube.com/watch?v=c0_9Y8QAstg Where can ERD be placed in SDLC? Entity Relationship Diagram(ERD) 7
  • 8. Entity ◼An entity is any singular, identifiable and separate object ◼An entity is any object in the system that we want to model and store information about. such as person, places, employee, student, lecturer, or events ◼ Entities are represented by rectangles ◼ Identify entities for a college system (KEA) LECTURERSTUDENT DEPARTMENT COURSE SUBJECT 8
  • 9. Exercises Exercise 1 Identify entities for a hospital system Exercise 2 Identify entities for a library management system Exercise 3 Identify entities for Facebook 9
  • 10. ◼A relationship shows how two entities share information in the database. ◼A relationship is represented by diamond shape ◼In some cases, entities can be self-linked. For example, A lecturer can supervise other lecturer. ◼ Example: Relationships & Entities for KEA Relationship Course LECTURER Department Student Subject Manager 10
  • 11. Exercises Exercise 4 Identify relationships between entities for the hospital system (from exercise 1) Exercise 5 Identify relationships between entities for the library management system (from exercise 2) Exercise 6 Identify relationships between entities for Facebook(from exercise 3) 11
  • 12. ◼Cardinality is the number of instances of one entity that can be associated with each instance of another entity ◼Cardinality must be one of the following types: One to One One Department run by one manager or one manager manages only one department One to Many/ Many to One Many lecturers Work in one Department or One Department has many lecturers Many to Many Many Lecturers Teach many Students or Many students are taught by many lecturers Identify cardinality for a college system (KEA) Department Student Manager DepartmentLecturer Lecturer 11 1M M M Cardinality 12
  • 13. Cardinality for a college system Course LECTURER Department Student Subject Manager M 1 M M 1 1 M M1 M 1 M 13
  • 14. Exercises Exercise 7 Identify cardinalities between entities for the hospital system Exercise 8 Identify cardinalities between entities for the library management system Exercise 9 Identify cardinalities between entities for Facebook 14
  • 15. Attribute ◼Attributes are the properties of entities ◼Attributes are represented by ellipses ◼ Every ellipse represents one attribute and is directly connected to its entity (rectangle) STUDENT COURSE Student_ID Name City DOB Street Zip_Code Course_ID Name Credits Room Gender Age Identify cardinality for a college system (KEA) 15
  • 17. Exercises Exercise 10 Identify attributes of the entities for the hospital system Exercise 11 Identify attributes of the entities for the library management system Exercise 12 Identify attributes of the entities for Facebook 17
  • 18. Assignments Hand-in Wednesday 8th February Draw an ER diagram for a Bank Management system Draw an ER diagram for Amazon 18