Skip to content
ExamSpine

Answer it

P1 a3 cafe normalise

6 marksYou mark it yourself against the marking points

A school café records orders in one table, OrderLine. Its primary key is the composite key (order_id, item_code). The table is already in first normal form.

order_iditem_codeorder_datecustomer_idcustomer_nameitem_nameunit_pricequantity
501C12026-10-1277LenaFlat white3.202
501P42026-10-1277LenaCroissant2.501
502C12026-10-1280SamFlat white3.201
503T22026-10-1377LenaMint tea2.802

Assume that each order is placed by one customer on one date, and that an item's unit_price is its current price, which is the same on every order.

(a) Identify one partial dependency in OrderLine. [1]

(b) Identify one transitive dependency in OrderLine. [1]

(c) Construct a set of tables in third normal form that holds the same data as OrderLine. For each table, give its name and attributes, and state its primary key and any foreign keys. [4]

[6]