SlideShare a Scribd company logo
5
Most read
11
Most read
17
Most read
Database Management System
ER Diagram → Relational Schema
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Design Phases
2
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Physical-design
Phase
(Relational Database)
Logical-design Phase
(Relational Schema)
Conceptual-design
Phase
(ER Diagram)
User
Requirements
Specification
Database Schema & Data Model
Database Schema
Describes the overall design of the database at different levels(physical, logical, view)
Data Model
Describes a way to design database at physical, logical and view level. It is a collection of conceptual tools and
languages for describing data, data relationships, data semantics, and consistency constraints.
High-level conceptual data model → ER Model
Record based logical data model → Relational Model
3
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
E-R Diagram vs Relational Schema
4
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
ER Diagram Relational Schema
The main components of ER Model are:
• Entity Set – set of similar entities
• Relationship Set – set of similar relationships
• Attributes – including different types of keys
The main components of Relational Model are:
• Relations (tables)
• Tuple (row, unordered)
• Attributes (columns, unordered)
• Domain (column type)
• Primary Key
• Foreign Key
ER Model describes Mapping Cardinality. Relational Model does not describe Mapping Cardinality.
E-R Diagram vs Relational Schema
5
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
ER Diagram :
Relational Schema :
Relational Schema >> Strong Entity Set
6
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> Weak Entity Set
7
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> Composite Attribute
8
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> Multivalued Attribute
9
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> Derived Attribute
10
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> One to One Relationship Set
11
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Nullable
Relational Schema >> One to Many Relationship Set
12
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Nullable
Relational Schema >> Many to Many Relationship Set
13
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> Recursive Relationship Set
14
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
Relational Schema >> Identifying Relationship Set
15
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
E-R Diagram → Relational Schema
16
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
17
THANKS!
Any questions?
Email : imam@cse.uiu.ac.bd
References:
▪ Database System Concepts by S. Sudarshan, Henry F. Korth, Abraham Silberschatz
▪ Database Systems The Complete Book by Ullman, Widom and Hector
▪ https://www.lucidchart.com/pages/er-diagrams
▪ https://www.vertabelo.com/blog/chen-erd-notation/

More Related Content

PDF
DBMS 2 | Entity Relationship Model
Mohammad Imam Hossain
 
PDF
DBMS 6 | MySQL Practice List - Rank Related Queries
Mohammad Imam Hossain
 
PDF
DBMS 4 | MySQL - DDL & DML Commands
Mohammad Imam Hossain
 
PDF
DBMS 7 | Relational Query Language
Mohammad Imam Hossain
 
PDF
DBMS 9 | Extendible Hashing
Mohammad Imam Hossain
 
PDF
DBMS 8 | Memory Hierarchy and Indexing
Mohammad Imam Hossain
 
PDF
DBMS 1 | Introduction to DBMS
Mohammad Imam Hossain
 
PPTX
Types of network
ishjari
 
DBMS 2 | Entity Relationship Model
Mohammad Imam Hossain
 
DBMS 6 | MySQL Practice List - Rank Related Queries
Mohammad Imam Hossain
 
DBMS 4 | MySQL - DDL & DML Commands
Mohammad Imam Hossain
 
DBMS 7 | Relational Query Language
Mohammad Imam Hossain
 
DBMS 9 | Extendible Hashing
Mohammad Imam Hossain
 
DBMS 8 | Memory Hierarchy and Indexing
Mohammad Imam Hossain
 
DBMS 1 | Introduction to DBMS
Mohammad Imam Hossain
 
Types of network
ishjari
 

What's hot (20)

ODP
ER Model in DBMS
Kabindra Koirala
 
PDF
Database Normalization
Arun Sharma
 
PPTX
Database : Relational Data Model
Smriti Jain
 
PDF
Dbms 10: Conversion of ER model to Relational Model
Amiya9439793168
 
PPTX
Recursion
Abdur Rehman
 
PPT
Introduction to sql
VARSHAKUMARI49
 
PPTX
Entity Relationship design issues
Megha Sharma
 
PDF
2 database system concepts and architecture
Kumar
 
PPTX
ER model to Relational model mapping
Shubham Saini
 
PPTX
ER MODEL
Rupali Rana
 
PPT
Cocomo model
Sony Elizabeth
 
PPTX
Introduction to database & sql
zahid6
 
PPTX
database language ppt.pptx
Anusha sivakumar
 
PPTX
Entity Relationship Diagrams
sadique_ghitm
 
PPT
Er & eer to relational mapping
saurabhshertukde
 
PDF
Object Based Databases
Farzad Nozarian
 
PPT
Database Chapter 3
shahadat hossain
 
PPTX
Adbms 11 object structure and type constructor
Vaibhav Khanna
 
PPT
3 Tier Architecture
guestd0cc01
 
ER Model in DBMS
Kabindra Koirala
 
Database Normalization
Arun Sharma
 
Database : Relational Data Model
Smriti Jain
 
Dbms 10: Conversion of ER model to Relational Model
Amiya9439793168
 
Recursion
Abdur Rehman
 
Introduction to sql
VARSHAKUMARI49
 
Entity Relationship design issues
Megha Sharma
 
2 database system concepts and architecture
Kumar
 
ER model to Relational model mapping
Shubham Saini
 
ER MODEL
Rupali Rana
 
Cocomo model
Sony Elizabeth
 
Introduction to database & sql
zahid6
 
database language ppt.pptx
Anusha sivakumar
 
Entity Relationship Diagrams
sadique_ghitm
 
Er & eer to relational mapping
saurabhshertukde
 
Object Based Databases
Farzad Nozarian
 
Database Chapter 3
shahadat hossain
 
Adbms 11 object structure and type constructor
Vaibhav Khanna
 
3 Tier Architecture
guestd0cc01
 
Ad

More from Mohammad Imam Hossain (20)

PDF
DS & Algo 6 - Offline Assignment 6
Mohammad Imam Hossain
 
PDF
DS & Algo 6 - Dynamic Programming
Mohammad Imam Hossain
 
PDF
DS & Algo 5 - Disjoint Set and MST
Mohammad Imam Hossain
 
PDF
DS & Algo 4 - Graph and Shortest Path Search
Mohammad Imam Hossain
 
PDF
DS & Algo 3 - Offline Assignment 3
Mohammad Imam Hossain
 
PDF
DS & Algo 3 - Divide and Conquer
Mohammad Imam Hossain
 
PDF
DS & Algo 2 - Offline Assignment 2
Mohammad Imam Hossain
 
PDF
DS & Algo 2 - Recursion
Mohammad Imam Hossain
 
PDF
DS & Algo 1 - Offline Assignment 1
Mohammad Imam Hossain
 
PDF
DS & Algo 1 - C++ and STL Introduction
Mohammad Imam Hossain
 
PDF
DBMS 10 | Database Transactions
Mohammad Imam Hossain
 
PDF
DBMS 5 | MySQL Practice List - HR Schema
Mohammad Imam Hossain
 
PDF
TOC 10 | Turing Machine
Mohammad Imam Hossain
 
PDF
TOC 9 | Pushdown Automata
Mohammad Imam Hossain
 
PDF
TOC 8 | Derivation, Parse Tree & Ambiguity Check
Mohammad Imam Hossain
 
PDF
TOC 7 | CFG in Chomsky Normal Form
Mohammad Imam Hossain
 
PDF
TOC 6 | CFG Design
Mohammad Imam Hossain
 
PDF
TOC 5 | Regular Expressions
Mohammad Imam Hossain
 
PDF
TOC 4 | Non-deterministic Finite Automata
Mohammad Imam Hossain
 
PDF
TOC 3 | Different Operations on DFA
Mohammad Imam Hossain
 
DS & Algo 6 - Offline Assignment 6
Mohammad Imam Hossain
 
DS & Algo 6 - Dynamic Programming
Mohammad Imam Hossain
 
DS & Algo 5 - Disjoint Set and MST
Mohammad Imam Hossain
 
DS & Algo 4 - Graph and Shortest Path Search
Mohammad Imam Hossain
 
DS & Algo 3 - Offline Assignment 3
Mohammad Imam Hossain
 
DS & Algo 3 - Divide and Conquer
Mohammad Imam Hossain
 
DS & Algo 2 - Offline Assignment 2
Mohammad Imam Hossain
 
DS & Algo 2 - Recursion
Mohammad Imam Hossain
 
DS & Algo 1 - Offline Assignment 1
Mohammad Imam Hossain
 
DS & Algo 1 - C++ and STL Introduction
Mohammad Imam Hossain
 
DBMS 10 | Database Transactions
Mohammad Imam Hossain
 
DBMS 5 | MySQL Practice List - HR Schema
Mohammad Imam Hossain
 
TOC 10 | Turing Machine
Mohammad Imam Hossain
 
TOC 9 | Pushdown Automata
Mohammad Imam Hossain
 
TOC 8 | Derivation, Parse Tree & Ambiguity Check
Mohammad Imam Hossain
 
TOC 7 | CFG in Chomsky Normal Form
Mohammad Imam Hossain
 
TOC 6 | CFG Design
Mohammad Imam Hossain
 
TOC 5 | Regular Expressions
Mohammad Imam Hossain
 
TOC 4 | Non-deterministic Finite Automata
Mohammad Imam Hossain
 
TOC 3 | Different Operations on DFA
Mohammad Imam Hossain
 
Ad

Recently uploaded (20)

PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Virus sequence retrieval from NCBI database
yamunaK13
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 

DBMS 3 | ER Diagram to Relational Schema

  • 1. Database Management System ER Diagram → Relational Schema Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 2. Design Phases 2 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU Physical-design Phase (Relational Database) Logical-design Phase (Relational Schema) Conceptual-design Phase (ER Diagram) User Requirements Specification
  • 3. Database Schema & Data Model Database Schema Describes the overall design of the database at different levels(physical, logical, view) Data Model Describes a way to design database at physical, logical and view level. It is a collection of conceptual tools and languages for describing data, data relationships, data semantics, and consistency constraints. High-level conceptual data model → ER Model Record based logical data model → Relational Model 3 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 4. E-R Diagram vs Relational Schema 4 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU ER Diagram Relational Schema The main components of ER Model are: • Entity Set – set of similar entities • Relationship Set – set of similar relationships • Attributes – including different types of keys The main components of Relational Model are: • Relations (tables) • Tuple (row, unordered) • Attributes (columns, unordered) • Domain (column type) • Primary Key • Foreign Key ER Model describes Mapping Cardinality. Relational Model does not describe Mapping Cardinality.
  • 5. E-R Diagram vs Relational Schema 5 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU ER Diagram : Relational Schema :
  • 6. Relational Schema >> Strong Entity Set 6 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 7. Relational Schema >> Weak Entity Set 7 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 8. Relational Schema >> Composite Attribute 8 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 9. Relational Schema >> Multivalued Attribute 9 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 10. Relational Schema >> Derived Attribute 10 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 11. Relational Schema >> One to One Relationship Set 11 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU Nullable
  • 12. Relational Schema >> One to Many Relationship Set 12 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU Nullable
  • 13. Relational Schema >> Many to Many Relationship Set 13 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 14. Relational Schema >> Recursive Relationship Set 14 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 15. Relational Schema >> Identifying Relationship Set 15 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 16. E-R Diagram → Relational Schema 16 Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
  • 17. 17 THANKS! Any questions? Email : [email protected] References: ▪ Database System Concepts by S. Sudarshan, Henry F. Korth, Abraham Silberschatz ▪ Database Systems The Complete Book by Ullman, Widom and Hector ▪ https://www.lucidchart.com/pages/er-diagrams ▪ https://www.vertabelo.com/blog/chen-erd-notation/