Professional Documents
Culture Documents
Name : Ms.Julie
(a) Design an appropriate set of normalized relation to represent the Magazine Subscription
Information .Decompose the following relation to First Normal Form (1NF), Second
Normal Form (2NF) and Third Normal Form (3NF).
(16 marks)
1NF
2NF
(b) Based from the Magazine Subscription Information above ,describe
THREE (3) different types of anomalies that could occur in an
unnormalized table? (9 marks)
PLAYER(PLAYERID,PNAME,CONTACT,ADDRESS,TRAINER_ID, TRAINER_NAME)
GAME-PLAYED(PLAYER ID,GAMEid,Time,day)
GAME(GAMEid,Gamedesc,VANUE)
3NF (REMOVE TRANSITIVE DEPENDENCY) – REMOVE NON KEY DEPENDENT ON ANOTHER NON
KEY
Player_Game_info(playerid,name,cont,addr,gameid,desc,value………………….)
What is a referential integrity constraint? (3 marks)
Question 2
Given a sample Player details form for a Sports Recreation Club. This form use to record down the
details of players and the games played ,together with their payment details.
***********************PAYMENT DETAILS*****************************
INF
PLAYER(PLAYERID,PNAME,NUM,ADDR,PAYMENT REFNO.PAYMENT
DATE,TYPE,AMOUNT)
GAMEPLAYED(PLAYERID,GAMEID,DESC,VANUE,TIME,DAY,TRAINERID,NAME)
2NF
PLAYER(PLAYERID,PNAME,NUM,ADDR,PAYMENT REFNO.PAYMENT
DATE,TYPE,AMOUNT)
GAMEPLAYED(PLAYERID,GAMEID,TIME,DAY,TRAINERID,TRAINERNAME)
GAME(GAMEID,DESC,VANUE)
3NF
PLAYER(PLAYERID,PNAME,NUM,ADDR,PAYMENT REFNO*)
GAMEPLAYED(PLAYERID,GAMEID,TIME,DAY,TRAINERID*)
TRAINER(TRAINERID,TRAINERNAME)
GAME(GAMEID,DESC,VANUE)
TIME, DAY CAN BE IN GAME TABLE IF YOU WANTTO FIX THE TIME IN EACH GAME
I HAVE STATED THE TIME AND DAY IN GAME PLAYED ENTITY BECAUSE I ASSUME
TIME IS CHOSEN BY PLAYER CONVINIENCE
QUESTION
UNNORMALISED(UNF)
Student(Sid,name,tel,addr,email,
{subcode,desc,credit hr,mark,grade,remark,}
ExamOfficerid,name,ext)
Name :Anna
Subject taken
(SID,SUBCODE,DESC,CREDITHR,MARK,GRADE,
REMARK)
STUDENT(SID,NAME,TEL,ADDR,EMAIL,
ExamOfficerid,name,ext)
SUBJECT(SUBCODE,DESC,CREDITHR)
Itm3201 database 3
Itm 3202 network
3NF(REMOVE TRANSITIVE DEPENDENCY)
STUDENT(SID,NAME,TEL,ADDR,EMAIL,
ExamOfficerid*)
OFFICER(ExamOfficerid,name,ext)
SUBJECT(SUBCODE,DESC,CREDITHR)
CA11 COMP ARC 4
CA12 COMP SYS 5