SlideShare a Scribd company logo
3
Most read
4
Most read
7
Most read
Database System
Assignment
On
Submitted To :
Sir MD. Shohel Mojumder
Lecturer, Bangladesh University
Department of CSE
Submitted By :
MD. SADIQUR RAHMAN
ID : 201531043092
Batch No : 43
Department of CSE
BANGLADESH UNIVERSITY
15/1, Iqbal Road, Mohammadpur, Dhaka-1207
1
Required Data
Required data for creating a student marks database
of a university:
1. For student information each student has a unique ID.
2. Each student has a name.
3. Each student takes a Program.
4. Versity offers courses for students.
5. Offering course have Course time limit, Section number
& Room number.
6. Each Course should have a unique ID.
7. Offering Course have Semester & Year.
8. Versity takes Exam & Every exam have a specific Exam
ID.
9. Each exam has subject, exam place & exam time.
10. Finally have marks of each student for each course.
2
ER Diagram
3
Snapshot :
Student (Sid, Sname, Program, Sec_no)
Course_offreing (Sec_no, Time, Room, Course_no, Semester, Year)
Exam (Eid, Ename, Eplace, Etime)
Takes (Sid, Eid, makes, Sec_no)
Student
Sid Sname Program Sec_no
Course Offering
Sec_no Time Room Course_no Semester Year
Exam
Eid Ename Eplace Etime
Takes
Sid Eid Sec_no Marks
4
Tables
Table made from ER diagram.
Students
Student ID. Name Program
10131 Akash CSE
10132 Karim BBA
10133 Jamail LAW
10134 Habib EEE
Exam
Exam ID. Name Place Time
43138 DBMS Mirpur 10.00 am
43139 Accounting Bobani 2.00 pm
43140 English Gulshan 12.00 pm
43141 DLD Mohakhali 10.00 am
5
Course Offerings
Time Section No Room Course No Semester Year
4 months 3A 001 CSE-312 Fall 2017
4 months 3E 122 BUS-315 Fall 2016
4 months 4C 243 ENG-112 Spring 2015
4 months 5A 359 EEE-111 Summer 2016
Course taken by Students and their marks in
exams:
Student ID Course No Exam ID Marks
10131 CSE-312 43138 81
10132 BUS-315 43139 68
10133 ENG-112 43140 85
10134 EEE-111 43141 81
10134 CSE-312 43138 75
10131 BUS-315 43138 68
10132 ENG-112 43140 75
6
Normalization
We will use three types of normalization:
1. First normal form(1NF)
2. Second normal form(2NF)
3. Third normal form(3NF)
Let’s begin. We can normalize the marks in exams table as it’s already in
first normal form.
Student ID Course No Exam ID Marks
10131 CSE-312 43138 81
10132 BUS-315 43139 68
10133 ENG-112 43140 85
10134 EEE-111 43141 81
10134 CSE-312 43138 75
10131 BUS-315 43138 68
10132 ENG-112 43140 75
Now it’s time for second normal form. The roles for second
normal form is:
 Table is in 1NF (First normal form)
 No non-prime attribute is dependent on the proper subset
of any candidate key of table.
7
As we can see there are two candidate keys: (Students ID, Course
NO).
And a non-prime attribute: (Marks).
Because to find out a student exam mark in a specific subject we
need that subject’s course ID/ course no. So marks a non-primitive
attribute is functionally dependent on students ID and course no.
both.
We have to remove this dependency.
We will create a table with students ID and Course No.
Student ID Course No
10131 CSE-312
10132 BUS-315
10133 ENG-112
10134 EEE-111
10134 CSE-312
10131 BUS-315
10132 ENG-112
8
And a table with Course No, Exam ID, Marks.
Course No Exam ID Marks
CSE-312 43138 81
BUS-315 43139 68
ENG-112 43140 85
EEE-111 43141 81
CSE-312 43138 75
BUS-315 43138 68
ENG-112 43140 75
THE END

More Related Content

PPTX
Unit 4 dbms
PPTX
Odbms concepts
PDF
Fundamentals of Database Systems 6th Edition Elmasri Solutions Manual
PPTX
University Database Management Project
PPT
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
PPT
Database Systems (SLIDE 1).ppt
PDF
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
PPTX
Physical database design(database)
Unit 4 dbms
Odbms concepts
Fundamentals of Database Systems 6th Edition Elmasri Solutions Manual
University Database Management Project
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Database Systems (SLIDE 1).ppt
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
Physical database design(database)

What's hot (20)

PPTX
Student Information System (SIS) in PHP
PPTX
Student management system
PPT
Student management system
PPTX
Microprogrammed Control Unit
PPTX
DOC
Step to program in tasm
PPTX
Student result mamagement
PPTX
Software Engineering by Pankaj Jalote
PPTX
Report of Student management system
PPTX
Relational model
PPT
Loader
PPT
Student Information System ( S.I.S. )
PDF
Waterfall model
PPTX
Hospital management system dfd
PPTX
Result Management System
DOCX
Bank management system
DOCX
Report on SOFTWARE DEVELOPMENT LIFE CYCLE SDLC
DOC
Dbms lab questions
PPTX
DATABASE CONSTRAINTS
Student Information System (SIS) in PHP
Student management system
Student management system
Microprogrammed Control Unit
Step to program in tasm
Student result mamagement
Software Engineering by Pankaj Jalote
Report of Student management system
Relational model
Loader
Student Information System ( S.I.S. )
Waterfall model
Hospital management system dfd
Result Management System
Bank management system
Report on SOFTWARE DEVELOPMENT LIFE CYCLE SDLC
Dbms lab questions
DATABASE CONSTRAINTS

Similar to Convert ER diagram to Relational model and Normalization (20)

PPT
Intro to Data warehousing lecture 03
PPTX
Educational Resource Management System
PDF
How to normalize your tables
PPT
603s129
PDF
KCS-501-3.pdf
PPTX
Db presn(1)
PPTX
09.01 normalization
PPTX
MergeResult_2023_11_05_10_40_21.pptxoooo
PPTX
DBMS PROJECT.pptx (with normalization upto 3nf)
PPT
D I T211 Chapter 6
PPT
Lecture 6
PPTX
5 normal forms in relational database theory
DOCX
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT 1.docx
PDF
10 csl57 dbms lab
PPT
Dwh lecture-06-normalization
PPTX
databasedatabasedatabasedatabasedatabase.pptx
PDF
Basics of Normalization with Examples
PPTX
normalaization in database management system
PDF
Chapter 4 FD and normalization edited.pdf
PPT
Relational_Intro_1. relational databaseppt
Intro to Data warehousing lecture 03
Educational Resource Management System
How to normalize your tables
603s129
KCS-501-3.pdf
Db presn(1)
09.01 normalization
MergeResult_2023_11_05_10_40_21.pptxoooo
DBMS PROJECT.pptx (with normalization upto 3nf)
D I T211 Chapter 6
Lecture 6
5 normal forms in relational database theory
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT 1.docx
10 csl57 dbms lab
Dwh lecture-06-normalization
databasedatabasedatabasedatabasedatabase.pptx
Basics of Normalization with Examples
normalaization in database management system
Chapter 4 FD and normalization edited.pdf
Relational_Intro_1. relational databaseppt

Recently uploaded (20)

PDF
[EN] Industrial Machine Downtime Prediction
PDF
Lecture1 pattern recognition............
PDF
Mega Projects Data Mega Projects Data
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Introduction to the R Programming Language
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
Computer network topology notes for revision
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Database Infoormation System (DBIS).pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PDF
annual-report-2024-2025 original latest.
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PDF
Business Analytics and business intelligence.pdf
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
[EN] Industrial Machine Downtime Prediction
Lecture1 pattern recognition............
Mega Projects Data Mega Projects Data
Reliability_Chapter_ presentation 1221.5784
Introduction to the R Programming Language
SAP 2 completion done . PRESENTATION.pptx
Computer network topology notes for revision
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Database Infoormation System (DBIS).pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
annual-report-2024-2025 original latest.
climate analysis of Dhaka ,Banglades.pptx
Introduction-to-Cloud-ComputingFinal.pptx
STERILIZATION AND DISINFECTION-1.ppthhhbx
Business Analytics and business intelligence.pdf
STUDY DESIGN details- Lt Col Maksud (21).pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
ISS -ESG Data flows What is ESG and HowHow
Recruitment and Placement PPT.pdfbjfibjdfbjfobj

Convert ER diagram to Relational model and Normalization

  • 1. Database System Assignment On Submitted To : Sir MD. Shohel Mojumder Lecturer, Bangladesh University Department of CSE Submitted By : MD. SADIQUR RAHMAN ID : 201531043092 Batch No : 43 Department of CSE BANGLADESH UNIVERSITY 15/1, Iqbal Road, Mohammadpur, Dhaka-1207
  • 2. 1 Required Data Required data for creating a student marks database of a university: 1. For student information each student has a unique ID. 2. Each student has a name. 3. Each student takes a Program. 4. Versity offers courses for students. 5. Offering course have Course time limit, Section number & Room number. 6. Each Course should have a unique ID. 7. Offering Course have Semester & Year. 8. Versity takes Exam & Every exam have a specific Exam ID. 9. Each exam has subject, exam place & exam time. 10. Finally have marks of each student for each course.
  • 4. 3 Snapshot : Student (Sid, Sname, Program, Sec_no) Course_offreing (Sec_no, Time, Room, Course_no, Semester, Year) Exam (Eid, Ename, Eplace, Etime) Takes (Sid, Eid, makes, Sec_no) Student Sid Sname Program Sec_no Course Offering Sec_no Time Room Course_no Semester Year Exam Eid Ename Eplace Etime Takes Sid Eid Sec_no Marks
  • 5. 4 Tables Table made from ER diagram. Students Student ID. Name Program 10131 Akash CSE 10132 Karim BBA 10133 Jamail LAW 10134 Habib EEE Exam Exam ID. Name Place Time 43138 DBMS Mirpur 10.00 am 43139 Accounting Bobani 2.00 pm 43140 English Gulshan 12.00 pm 43141 DLD Mohakhali 10.00 am
  • 6. 5 Course Offerings Time Section No Room Course No Semester Year 4 months 3A 001 CSE-312 Fall 2017 4 months 3E 122 BUS-315 Fall 2016 4 months 4C 243 ENG-112 Spring 2015 4 months 5A 359 EEE-111 Summer 2016 Course taken by Students and their marks in exams: Student ID Course No Exam ID Marks 10131 CSE-312 43138 81 10132 BUS-315 43139 68 10133 ENG-112 43140 85 10134 EEE-111 43141 81 10134 CSE-312 43138 75 10131 BUS-315 43138 68 10132 ENG-112 43140 75
  • 7. 6 Normalization We will use three types of normalization: 1. First normal form(1NF) 2. Second normal form(2NF) 3. Third normal form(3NF) Let’s begin. We can normalize the marks in exams table as it’s already in first normal form. Student ID Course No Exam ID Marks 10131 CSE-312 43138 81 10132 BUS-315 43139 68 10133 ENG-112 43140 85 10134 EEE-111 43141 81 10134 CSE-312 43138 75 10131 BUS-315 43138 68 10132 ENG-112 43140 75 Now it’s time for second normal form. The roles for second normal form is:  Table is in 1NF (First normal form)  No non-prime attribute is dependent on the proper subset of any candidate key of table.
  • 8. 7 As we can see there are two candidate keys: (Students ID, Course NO). And a non-prime attribute: (Marks). Because to find out a student exam mark in a specific subject we need that subject’s course ID/ course no. So marks a non-primitive attribute is functionally dependent on students ID and course no. both. We have to remove this dependency. We will create a table with students ID and Course No. Student ID Course No 10131 CSE-312 10132 BUS-315 10133 ENG-112 10134 EEE-111 10134 CSE-312 10131 BUS-315 10132 ENG-112
  • 9. 8 And a table with Course No, Exam ID, Marks. Course No Exam ID Marks CSE-312 43138 81 BUS-315 43139 68 ENG-112 43140 85 EEE-111 43141 81 CSE-312 43138 75 BUS-315 43138 68 ENG-112 43140 75 THE END