Homework Questions Design
Homework Questions Design
(a) Scot Car’s relational database contains primary and foreign keys.
i) Identify a suitable field for the Primary Key in the Car table.
1 Registration
ii) Identify a suitable key for the Primary Key in the Branch
table. 1
Postcode
BranchNumber
iv) Identify the type of data that would be stored in the mileage
field.
1
Number/Integer
(d) Customers often visit Scot Cars looking for a particular make and
model of car.
Write the SQL for a search that would provide customers with an ordered
list of cars, as shown below. 5
ORDER BY Mileage;
Total = 17