DBMS 3 | ER Diagram to Relational Schema

imamhossain75054 2,367 views 17 slides Jul 25, 2021
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

This slide explains the conversion procedure from ER Diagram to Relational Schema.
1. Entity set to Relation
2. Relationship set to Relation
3. Attributes to Columns, Primary key, Foreign Keys


Slide Content

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 vsRelational Schema
4
Mohammad Imam Hossain, Lecturer, Dept. of CSE, UIU
ER Diagram RelationalSchema
The main components of ER Model are:
•Entity Set –setof similar entities
•Relationship Set –set of similar relationships
•Attributes –including different types of keys
The maincomponents of Relational Model are:
•Relations (tables)
•Tuple (row, unordered)
•Attributes (columns, unordered)
•Domain (column type)
•Primary Key
•Foreign Key
ER Model describes Mapping Cardinality. RelationalModel does not describe Mapping Cardinality.

E-R Diagram vsRelational 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 : [email protected]
References:
▪Database System Concepts by S. Sudarshan, Henry F. Korth, Abraham Silberschatz
▪Database Systems The Complete Book by Ullman, Widomand Hector
▪https://www.lucidchart.com/pages/er-diagrams
▪https://www.vertabelo.com/blog/chen-erd-notation/