SlideShare a Scribd company logo
1 of 9
Download to read offline
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

OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]Daffodil International University
 
Uml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemUml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemPradeep Bhosale
 
Student result mamagement
Student result mamagementStudent result mamagement
Student result mamagementMickey
 
Token, Pattern and Lexeme
Token, Pattern and LexemeToken, Pattern and Lexeme
Token, Pattern and LexemeA. S. M. Shafi
 
SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)
SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)
SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)Dilip Prajapati
 
Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document) Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document) Fatima Qayyum
 
Attendance management system project report.
Attendance management system project report.Attendance management system project report.
Attendance management system project report.Manoj Kumar
 
Online Quiz System Project Report ppt
Online Quiz System Project Report pptOnline Quiz System Project Report ppt
Online Quiz System Project Report pptKishan Maurya
 
SRS for online examination system
SRS for online examination systemSRS for online examination system
SRS for online examination systemlunarrain
 
Online Quiz System Project Report
Online Quiz System Project Report Online Quiz System Project Report
Online Quiz System Project Report Kishan Maurya
 
ATM System Description and functional and non- functional Requirements
ATM System Description and functional and non- functional RequirementsATM System Description and functional and non- functional Requirements
ATM System Description and functional and non- functional Requirementswajahat Gul
 
Library management system presentation
Library management system presentation Library management system presentation
Library management system presentation Smit Patel
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management Systemkataria Arvind
 
Full report on blood bank management system
Full report on  blood bank management systemFull report on  blood bank management system
Full report on blood bank management systemJawhar Ali
 

What's hot (20)

OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]OpenGL Mini Projects With Source Code [ Computer Graphics ]
OpenGL Mini Projects With Source Code [ Computer Graphics ]
 
Uml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemUml diagram for_hospital_management_system
Uml diagram for_hospital_management_system
 
Online Restaurant Management System
Online Restaurant Management SystemOnline Restaurant Management System
Online Restaurant Management System
 
Student result mamagement
Student result mamagementStudent result mamagement
Student result mamagement
 
Token, Pattern and Lexeme
Token, Pattern and LexemeToken, Pattern and Lexeme
Token, Pattern and Lexeme
 
SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)
SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)
SPORT TOURNAMENT MANAGMENT SYSTEM (STMS)
 
Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document) Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document)
 
Attendance management system project report.
Attendance management system project report.Attendance management system project report.
Attendance management system project report.
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Project report on blogs
Project report on blogsProject report on blogs
Project report on blogs
 
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
 
Online Quiz System Project Report ppt
Online Quiz System Project Report pptOnline Quiz System Project Report ppt
Online Quiz System Project Report ppt
 
SRS for online examination system
SRS for online examination systemSRS for online examination system
SRS for online examination system
 
Online Quiz System Project Report
Online Quiz System Project Report Online Quiz System Project Report
Online Quiz System Project Report
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
ATM System Description and functional and non- functional Requirements
ATM System Description and functional and non- functional RequirementsATM System Description and functional and non- functional Requirements
ATM System Description and functional and non- functional Requirements
 
Online attendance management system
Online attendance management systemOnline attendance management system
Online attendance management system
 
Library management system presentation
Library management system presentation Library management system presentation
Library management system presentation
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management System
 
Full report on blood bank management system
Full report on  blood bank management systemFull report on  blood bank management system
Full report on blood bank management system
 

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-15Mudit Garg
 
Continuous Assessment Guide_Edited 180111.pptx
Continuous Assessment Guide_Edited 180111.pptxContinuous Assessment Guide_Edited 180111.pptx
Continuous Assessment Guide_Edited 180111.pptxRedLim3
 
MSBTE K SCHEME CURRICULUM
MSBTE K SCHEME CURRICULUMMSBTE K SCHEME CURRICULUM
MSBTE K SCHEME CURRICULUMSurendar 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
 
Teacher evaluation form
Teacher evaluation formTeacher evaluation form
Teacher evaluation formSaqib Ahmed
 
Data normalization techniques
Data normalization techniquesData normalization techniques
Data normalization techniquesJonTepper
 
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
 
TIMETABLE II SEMESTER 2022 -23.pdf
TIMETABLE II SEMESTER 2022 -23.pdfTIMETABLE II SEMESTER 2022 -23.pdf
TIMETABLE II SEMESTER 2022 -23.pdfVaibhavZade16
 
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
 
AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM
AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM
AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM IAEME Publication
 

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)
 
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
 
AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM
AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM
AN EMPIRICAL STUDY ON ASSESSMENT OF PO ATTAINMENT FOR A DIPLOMA PROGRAM
 

Recently uploaded

Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 

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