Question: Question 3 ( 3 0 marks ) The table below shows some sample data of a database in a restaurant. The OrderID and ltemNo form

Question 3(30 marks)
The table below shows some sample data of a database in a restaurant. The OrderID and ltemNo form a composite primary key. The table stores data in one month, in which the prices do not change.
\table[[OrdertD,ItemNo,TableNo,Date,InTime,DishiD,DishName,UnitPrice,Qty],[1321,1,17,7-8-2024,14:30,A4,Shrimp Cocktail,80,1],[1321,2,17,7-8-2024,14:30,P3,Seafood Spaghetti,118,1],[1328,1,8,7-8-2024,14:35,52,Caesar Salad,108,1],[1328,2,8,7-8-2024,14:35,M1,Lamb Shrank,168,2],[1342,1,4,7-8-2024,15:00,M3,Sirloin Steak,188,1],[1378,1,17,7-8-2024,17:00,M1,Lamb Shrank,168,1]]
(a) To which types of anomalies (insertion, deletion, modification) is the above table susceptible? Please provide an example for each type of anomaly.
(b) Draw the dependency diagram of the above table. Label all dependencies (full, partial, transitive).
(c) Normalize the above table to 3NF. Give your answer in the form of celational schemas
ENTITY(Attributel, Attribute?, Attribute 3,...)
with the primary key attributes underlined.
Question 3 ( 3 0 marks ) The table below shows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!