Database Assignment # 2, Assignments of Database Management Systems (DBMS)

a. Draw a relational schema and diagram the functional dependencies in the relation. b. In what normal form is this relation? c. Decompose GRADE REPORT into a set of 3NF relations and show the referential integrity constraints

Typology: Assignments

2020/2021

Available from 11/03/2021

razaroghani
razaroghani 🇵🇰

4.5

(4)

151 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Database Systems Page 1 of 1
NOTE: Attempt all questions.
Question 1 (Normalization) :
The above table shows a relation called GRADE REPORT for a University.
a. Draw a relational schema and diagram the functional dependencies in the relation.
b. In what normal form is this relation?
c. Decompose GRADE REPORT into a set of 3NF relations and show the referential integrity constraints
Solution:
a. Draw a relational schema and diagram the functional dependencies in the relation.
StudentID StudentName CampusAddres
s
Major CourseID CourseTitle
Instructor
Name
Instructor
Location Grade
Functional dependency 1:
StudentID StudentName CampusAddress, Major
CourseID CourseTitle, InstructorName, InstructorLocation
StudentID, CourseID Grade.
instructorLocation InstructorName
b. In what normal form is this relation?
The relation does not contain any repeated attributes.so the relation is in First Normal form (1NF)
c. Decompose GRADE REPORT into a set of 3NF relations and show the referential integrity
constraints
The third normal form shows relation, which is created from the0GRADE REPORT0shown below:
STUDENT:
pf3
pf4

Partial preview of the text

Download Database Assignment # 2 and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

NOTE: Attempt all questions. Question 1 (Normalization) : The above table shows a relation called GRADE REPORT for a University. a. Draw a relational schema and diagram the functional dependencies in the relation. b. In what normal form is this relation? c. Decompose GRADE REPORT into a set of 3NF relations and show the referential integrity constraints

Solution:

a. Draw a relational schema and diagram the functional dependencies in the relation. StudentID StudentName CampusAddres s Major CourseID CourseTitle Instructor Name Instructor Location Grade Functional dependency 1:  StudentID StudentName CampusAddress, Major  CourseID CourseTitle, InstructorName, InstructorLocation  StudentID, CourseID Grade.  instructorLocation InstructorName b. In what normal form is this relation? The relation does not contain any repeated attributes.so the relation is in First Normal form (1NF) c. Decompose GRADE REPORT into a set of 3NF relations and show the referential integrity constraints The third normal form shows relation, which is created from the GRADE REPORT shown below: STUDENT:

StudentI D StudentNam e CampusAddress Major REGISTRATION COURSE INSTRUCTOR

1. In the STUDENT relation,  A relation does not have any repeating attributes.  The non-key attributes are dependent on primary key StudentID.  There is only functional dependency and no transitive dependency.  Therefore, the relation is in 3NF. StudentI D CourseID Grade CourseID CourseTitle InstructorName InstructorName InstructorLocation

The diagram to describe the third normal form relations with the relational integrity constraints is as given below: