SlideShare a Scribd company logo
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

What's hot

STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
VENNILAV6
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Biplap Bhattarai
 
Infix to postfix conversion
Infix to postfix conversionInfix to postfix conversion
Infix to postfix conversion
Then Murugeshwari
 
latches
 latches latches
latches
Unsa Shakir
 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
 
Linked List
Linked ListLinked List
Linked List
Ashim Lamichhane
 
Constructor and Destructor
Constructor and DestructorConstructor and Destructor
Constructor and Destructor
Sunipa Bera
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
Shuaib Hotak
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Prateek Parimal
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
sunanditaAnand
 
Input-Buffering
Input-BufferingInput-Buffering
Input-Buffering
Dattatray Gandhmal
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
Parsing in Compiler Design
Parsing in Compiler DesignParsing in Compiler Design
Parsing in Compiler Design
Akhil Kaushik
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
Bharat Kalia
 
Difference between combinational and
Difference between combinational andDifference between combinational and
Difference between combinational and
Damodar Panigrahy
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
Kamal Acharya
 
Circular queue
Circular queueCircular queue
Unit 3-pipelining & vector processing
Unit 3-pipelining & vector processingUnit 3-pipelining & vector processing
Unit 3-pipelining & vector processing
vishal choudhary
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
Unit 6. Arrays
Unit 6. ArraysUnit 6. Arrays
Unit 6. Arrays
Ashim Lamichhane
 

What's hot (20)

STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
 
Infix to postfix conversion
Infix to postfix conversionInfix to postfix conversion
Infix to postfix conversion
 
latches
 latches latches
latches
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Linked List
Linked ListLinked List
Linked List
 
Constructor and Destructor
Constructor and DestructorConstructor and Destructor
Constructor and Destructor
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
Input-Buffering
Input-BufferingInput-Buffering
Input-Buffering
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Parsing in Compiler Design
Parsing in Compiler DesignParsing in Compiler Design
Parsing in Compiler Design
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
 
Difference between combinational and
Difference between combinational andDifference between combinational and
Difference between combinational and
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Circular queue
Circular queueCircular queue
Circular queue
 
Unit 3-pipelining & vector processing
Unit 3-pipelining & vector processingUnit 3-pipelining & vector processing
Unit 3-pipelining & vector processing
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
 
Unit 6. Arrays
Unit 6. ArraysUnit 6. Arrays
Unit 6. Arrays
 

Similar to Convert ER diagram to Relational model and Normalization

1 final scheme & syllabus ist & 2nd semester for the academic session 2014-15
1 final scheme & syllabus  ist & 2nd semester for the academic session 2014-151 final scheme & syllabus  ist & 2nd semester for the academic session 2014-15
1 final scheme & syllabus ist & 2nd semester for the academic session 2014-15
Mudit Garg
 
Continuous Assessment Guide_Edited 180111.pptx
Continuous Assessment Guide_Edited 180111.pptxContinuous Assessment Guide_Edited 180111.pptx
Continuous Assessment Guide_Edited 180111.pptx
RedLim3
 
Lesson plan
Lesson planLesson plan
Lesson plan
mohammed249
 
Prac
PracPrac
MSBTE K SCHEME CURRICULUM
MSBTE K SCHEME CURRICULUMMSBTE K SCHEME CURRICULUM
MSBTE K SCHEME CURRICULUM
Surendar Rawat
 
Scheme g third semester (co,cm,cd,if, cw)
Scheme   g third semester (co,cm,cd,if, cw)Scheme   g third semester (co,cm,cd,if, cw)
Scheme g third semester (co,cm,cd,if, cw)
anita bodke
 
University result management system
University result management  systemUniversity result management  system
University result management system
Minhazul Abedin Munna
 
Teacher evaluation form
Teacher evaluation formTeacher evaluation form
Teacher evaluation form
Saqib Ahmed
 
Ijmet 10 01_025
Ijmet 10 01_025Ijmet 10 01_025
Ijmet 10 01_025
IAEME Publication
 
DME Syllabus.pdf
DME Syllabus.pdfDME Syllabus.pdf
DME Syllabus.pdf
Ankushkhansole3
 
Data normalization techniques
Data normalization techniquesData normalization techniques
Data normalization techniques
JonTepper
 
Course plan computer graphics
Course plan computer graphicsCourse plan computer graphics
Course plan computer graphicsaa11bb11
 
Course Outcome and Program Outcome Calculation(new method)
Course Outcome and Program Outcome Calculation(new method)Course Outcome and Program Outcome Calculation(new method)
Course Outcome and Program Outcome Calculation(new method)
Ravikumar Tiwari
 
Student management system university erp
Student management system   university erpStudent management system   university erp
Student management system university erp
Mehul Thakkar
 
TIMETABLE II SEMESTER 2022 -23.pdf
TIMETABLE II SEMESTER 2022 -23.pdfTIMETABLE II SEMESTER 2022 -23.pdf
TIMETABLE II SEMESTER 2022 -23.pdf
VaibhavZade16
 
EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE
EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE
EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE
cscpconf
 

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

1 final scheme & syllabus ist & 2nd semester for the academic session 2014-15
1 final scheme & syllabus  ist & 2nd semester for the academic session 2014-151 final scheme & syllabus  ist & 2nd semester for the academic session 2014-15
1 final scheme & syllabus ist & 2nd semester for the academic session 2014-15
 
Continuous Assessment Guide_Edited 180111.pptx
Continuous Assessment Guide_Edited 180111.pptxContinuous Assessment Guide_Edited 180111.pptx
Continuous Assessment Guide_Edited 180111.pptx
 
Lesson plan
Lesson planLesson plan
Lesson plan
 
Prac
PracPrac
Prac
 
MSBTE K SCHEME CURRICULUM
MSBTE K SCHEME CURRICULUMMSBTE K SCHEME CURRICULUM
MSBTE K SCHEME CURRICULUM
 
Db presn(1)
Db presn(1)Db presn(1)
Db presn(1)
 
Scheme g third semester (co,cm,cd,if, cw)
Scheme   g third semester (co,cm,cd,if, cw)Scheme   g third semester (co,cm,cd,if, cw)
Scheme g third semester (co,cm,cd,if, cw)
 
University result management system
University result management  systemUniversity result management  system
University result management system
 
Teacher evaluation form
Teacher evaluation formTeacher evaluation form
Teacher evaluation form
 
Ijmet 10 01_025
Ijmet 10 01_025Ijmet 10 01_025
Ijmet 10 01_025
 
DME Syllabus.pdf
DME Syllabus.pdfDME Syllabus.pdf
DME Syllabus.pdf
 
Transcript - Raghav.PDF
Transcript - Raghav.PDFTranscript - Raghav.PDF
Transcript - Raghav.PDF
 
0Lessonplan
0Lessonplan0Lessonplan
0Lessonplan
 
final pfoject
final pfojectfinal pfoject
final pfoject
 
Data normalization techniques
Data normalization techniquesData normalization techniques
Data normalization techniques
 
Course plan computer graphics
Course plan computer graphicsCourse plan computer graphics
Course plan computer graphics
 
Course Outcome and Program Outcome Calculation(new method)
Course Outcome and Program Outcome Calculation(new method)Course Outcome and Program Outcome Calculation(new method)
Course Outcome and Program Outcome Calculation(new method)
 
Student management system university erp
Student management system   university erpStudent management system   university erp
Student management system university erp
 
TIMETABLE II SEMESTER 2022 -23.pdf
TIMETABLE II SEMESTER 2022 -23.pdfTIMETABLE II SEMESTER 2022 -23.pdf
TIMETABLE II SEMESTER 2022 -23.pdf
 
EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE
EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE
EFFICIENCY OF DECISION TREES IN PREDICTING STUDENT’S ACADEMIC PERFORMANCE
 

Recently uploaded

一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 

Recently uploaded (20)

一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 

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