IDB Revision

2
Question 1 - ERD Consider the following scenario for a car manufacturing company: The organisation makes many models of cars, where a model is characterised by a name and a suffix (such as GL or XL which indicates the degree of luxury) and an engine size. Each model is made up from many parts and each part may be used in the manufacture of more than one model. Each part has a description and an id code. Each model of car is produced at just one of the firm's factories, which are located in London, Birmingham, Bristol, Wolverhampton and Manchester - one in each city. A factory produces many models of car and many types of part although each type of part is produced at one factory only. Design and draw an entity-relationship diagram that captures the information above. Indicate appropriate attributes, keys, cardinalities and participation constraints in your diagram. Question 2 – Normalisation Using the ROOM table structure shown below, normalize the table up to 3NF. You are required to write the relational schema of normalized tables and identify all dependencies (including all partial / transitive dependencies). RoomNumber BuildingCode BuidlingName ItemID ItemName N325 NTC NotTooClear 231134-678 HP DeskJet 895Cse 342245-225 HP Toner C123 CSF CanSeeFar 254668-449 DT Scanner 231134-699 HP DeskJet 998Cse 342245-225 HP Toner N626 NTC NotTooClear 254668-449 DT Scanner

description

IDB

Transcript of IDB Revision

Page 1: IDB Revision

Question 1 - ERD

Consider the following scenario for a car manufacturing company:

The organisation makes many models of cars, where a model is characterised by a name and a suffix (such as GL or XL which indicates the degree of luxury) and an engine size.Each model is made up from many parts and each part may be used in the manufacture of more than one model. Each part has a description and an id code. Each model of car is produced at just one of the firm's factories, which are located in London, Birmingham, Bristol, Wolverhampton and Manchester - one in each city. A factory produces many models of car and many types of part although each type of part is produced at one factory only.

Design and draw an entity-relationship diagram that captures the information above. Indicate appropriate attributes, keys, cardinalities and participation constraints in your diagram.

Question 2 – Normalisation

Using the ROOM table structure shown below, normalize the table up to 3NF. You are required to write the relational schema of normalized tables and identify all dependencies (including all partial / transitive dependencies).

RoomNumber BuildingCode BuidlingName ItemID ItemNameN325 NTC NotTooClear 231134-678 HP DeskJet 895Cse

342245-225 HP TonerC123 CSF CanSeeFar 254668-449 DT Scanner

231134-699 HP DeskJet 998Cse342245-225 HP Toner

N626 NTC NotTooClear 254668-449 DT Scanner