You are on page 1of 6

Module Code & Module Title

CC6001NI Advance Database system development


Course Work Module 1

Student Name: Sandesh Prasad Paudel

London Met ID: 22015762

College ID:np01cp4s220035

Submission Date: 13th January 2024


Table 1 Normalization

UNF:

Student (S.N, Student_Name, Contact, DOB, Email_address, country, {enroll_course,


enroll_date})

1 NF ( Separating Repeating Groups and Repeating Data ) :


Stundent1 (s.n, student_name, contact, dob, email_address, country)
Online Course1 (course_id , enroll_course , enroll_date, s.n*,)

2NF ( Separating Partial Dependency ):


A partial dependency occurs when a non-primary column depends on a single column
that is part of a composite primary key.
There is no partial dependency in the Student_1 table since the primary key is not
composite.
For Online Course_1 table:
Course_id : enroll_course
s.n :
course_id, s.n* : enroll date

Final tables in 2NF:


Stundet2 (s.n, student_name, contact, dob, email_address, country)
Course2 (course_id, enroll_course)
EnrolledCourse2 (course_id*,s.n*, enroll_Date)

3NF ( Separating Transitive Dependency):


In 3NF, we separate transitive dependency from the tables. A transitive dependency
exists when a non-key attribute gives another non-key attribute.
In order for transitive dependency to exist, there must be more than one non-key
attribute in a table.
EnrolledCourse2 and Course2 are already in 3NF because they only have one non-key
attribute.
For Student2 table:
S.N gives : student_name, contact, dob, email_address, country
Since no other non-key attributes give another non-key attribute this table is also in 3NF

Final table in 3NF are:


Stundent3 (s.n, student_name, contact, dob, email_address, country)
Course3 (course_id, enroll_course)
EnrolledCourse3 (course_id*,s.n*, enroll_Date)
Table 2 Normalization
UNF:
(student_name {course_id, course_title, { lesson_no, lesson_title, lesson_status,
last_accessed_Date} ,course_instructor_id, course_instructor_name})

1NF:
We separate repeating groups and repeating data.

Student1 (student_id, student_name)


Course1 (course_id(PK) , student_id* , course_title, course_instructor_id,
course_instructor_name)
Lesson1 (lesson no, course_id (Pk) , student_id*, lesson title, lesson status, last
accessed date)

2NF:
In 2NF, we separate partial dependency from the tables with composite primary key.
Student1 table is already in 2NF since it has no composite primary key.

For Course Table:


Course_id = course_title, course_instructor_id, course_instrucore_name
Student_id =
Course_id, student_id =

For Lesson Table:


Lesson_no, course_Id == lesson title
Lesson_no ==
Course_Id ==

Lesson_no,Course_id,student_id = lesson_status, last_accessed_date


Final Table in 2NF:
Student2 (student_id, student_name)
Course2 (Course_id, course_title, course_instructor_id, course_instructor_name)
Student_Course2(Student_ID, Course_ID)
Lesson2 (Lesson_no, course_Id (PK), lesson title)
Student-Lesson2 (Lesson_no,Course_id,student_id (PK) ,lesson_status,
last_accessed_date)

3NF:
In 3NF, we separate transitive dependency from tables with more than one non-key
attribute. The table Student2 is already in 3NF since it only has one non-key attribute.
For Course2 table:
Course3 (Course_ID, course_title, course_instructor_id*)
Instructor3 (Course_Instructor_id (PK), course_instructor_name)

For Lesson2 table:


No non-key attribute gives another non-key attribute. So the table is already in 3NF.
Lesson3 (lesson_no, course_id*,student_id*, lesson_title, lesson_status,
last_acessed_date)

So, final tables in 3NF


Student3 (student_id, student_name)
Course3 (Course_ID, course_title, course_instructor_id*)
Instructor3 (Course_Instructor_id (PK), course_instructor_name)
Student_Course3(Student_ID, Course_ID)
Lesson3 (Lesson_no, course_Id (PK), lesson title)
Student-Lesson3 (Lesson_no,Course_id,student_id (PK) ,lesson_status,
last_accessed_date)
Since the Student_Course3 table has no non-key attribute, we can merge it with
Course3 table and it won’t affect the database.

ERD of Case Study

Figure 1 ERD of course study

You might also like