You are on page 1of 1

ASSIGNMENT-2 (Full Marks: 20, Weightage: 10)

An agency called Instant Cover supplies part-time/temporary staff to hotels within India. The following table lists the time spent (hrs) by agency staff working at various hotels. The National Insurance Number (NIN) is unique for every member of staff. A contract is identified by a contract number (cNo) and has a starting date (cStart). Within a branch, there is just one hotel with its specific address (hAdd) per hotel group. NIN 1135 1057 1068 1135 1068 cNo C1024 C1024 C1025 C1025 C1026 cStart 1/4/03 1/4/03 8/3/04 8/3/04 5/7/06 hrs 16 24 28 15 20 eName eDob hGrNo Soni 3/11/70 H25 Sharma 22/12/71 H25 Mittal 15/7/63 H4 Roy 3/11/70 H4 Pal 15/7/63 H25 hAdd hGrName 1, HighSt Taj 1, HighSt Taj 2, MainSt Best 2, MainSt Best 3, ParkSt Taj hBranch Jaipur Jaipur New Delhi New Delhi Kolkata

(A) The table shown is susceptible to update anomalies. Provide examples for each of insertion, deletion, and modification anomalies. (3) (B) Normalise the relation above following the next steps: (i) List all valid functional dependencies for the unnormalised table above. Make sure this list is not longer than it needs to be, and not shorter than it must be (i.e., for each functional dependency, minimize the number of attributes in the left hand side, and maximize the number of attributes in the right hand side). (3) (ii) Identify all candidate keys, and explicitly choose the primary key. (3) (iii) Is the above table in 1NF? Why (not)? (2) (iv) Normalise to 2NF. Clearly indicate your reasoning. (3) (v) Normalise to 3NF. Clearly indicate your reasoning. (3) (vi) Normalise to BCNF if this is necessary. Clearly indicate your reasoning. (3)

You might also like