Normalisation Example Qs
Normalisation Example Qs
Consider a table that stores information about customers and their orders, with the following
:columns
CustomerName
CustomerAddress
CustomerCity
CustomerState
OrderDate
OrderTotal
OrderItem
OrderQuantity
Normalize it to Third Normal Form. Show all the necessary step and explanation for first and
second normal form too.
Question
Consider the following grade report of a student in different courses. The first part of the report
contains general details of the student such as ID of the student, name of the student, department
code, and department name. The second part of the report contains the details of the courses in
which the student obtained a grade. The Id of the course, name of the course, Id of the teacher,
name of the teacher, country of the teacher and the grade obtained by the student in the course is
.given in this part
(a) Normalize the report into 0NF, 1NF, 2NF and 3NF. Show the complete relations with the
given data in each normal form. [11 marks]
Student Grade Report
Introduction to
A Jordan Dr.Wael T1 Computers CS01
(b) List primary keys & foreign keys (if any) of all tables in 3NF in the following format.
[4 marks]
]Question
Consider the following position report of a student club in different competitions. The first part
of the report contains general details of the club such as code of the club, name of the club,
university code, and university name. The club participates in different competitions. The second
part of the report contains the details of the competitions in which the club participated. The Id of
the competition, name of the competition, Id of the venue, name of the venue, city of the venue
.and the position won by the club in that competition is given in this part
(a) Normalize the report into 0NF, 1NF, 2NF and 3NF. Show the complete relations with the
given data in each normal form. [11 marks]
Position report of a student club in different competitions
Student
First Kuwait Al Jahra V1 Conference CP3
Student
Third Bahrain Manama V2 Symposium CP2
(b) List primary keys & foreign keys (if any) of all tables in 3NF in the following format.
[4 marks]
Question
Consider the following bill of an art shop. The first part of the bill contains details of the
customer and the salesman. The second part of the report contains the details of the product
purchased.
(a) Normalize the report into 0NF, 1NF, 2NF and 3NF. Show the complete relations with the
given data in each normal form. [10 marks]
Bill report
b) Write suitable table names resulting in 3NF and list primary keys & foreign keys (if any) of all
tables in 3NF in the following format.
[5 marks]
Question
Answer the following questions related to the accommodation of guests in a hotel as shown
:below
Question
Answer the following questions related to a project allocation of a company as shown below:
a. What is the highest normal form that this relation conforms to and why? [3 Marks]
b. Normalise this relation to 3NF, showing the new relations in the manner the
relation PROJECT_ALLOCATION as shown above. Make sure you identify the primary
key for each normalized relation by underlining it [6 Marks]
c. Write simple ‘select’ SQL queries to produce the required normalized relations [6
marks]
Question
Consider the following bill of an art shop. The first part of the bill contains details of the
customer and the salesman. The second part of the report contains the details of the product
purchased.
(a) Normalize the report into 0NF, 1NF, 2NF and 3NF. Show the complete relations with the
given data in each normal form. [10 marks]
Bill report
b) Write suitable table names resulting in 3NF and list primary keys & foreign keys (if any) of all
tables in 3NF in the following format.
[5 marks]
d. What is the highest normal form that this relation conforms to and why? [3 Marks]
e. Normalise this relation to 3NF, showing the new relations in the manner the
relation PROJECT_ALLOCATION as shown above. Make sure you identify the primary
key for each normalized relation by underlining it [6 Marks]
f. Write simple ‘select’ SQL queries to produce the required normalized relations [6
marks]