SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

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
 

Tendances (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
 

Similaire à 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
 

Similaire à 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
 

Dernier

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...amitlee9823
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...amitlee9823
 

Dernier (20)

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 

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