Assignment#1-Databases(encrypted)
Assignment#1-Databases(encrypted)
Q1. A database, PROPERTY, was set up to show the prices of properties for sale
and the features of each property. Part of the database is shown below.
NISAR
(a) Give the number of fields that are in each record.
...................................................................................................................................[1]
(b) State which field you would choose for the primary key.
........................................................................................................................................
SAMREEN
Give a reason for choosing this field.
........................................................................................................................................
....................................................................................................................................[2]
(c) State the data type you would choose for each of the following fields.
Garage ...........................................................................................................................
Number of Bedrooms ..................................................................................................
Price in $ ...................................................................................................................[3]
1 Page
NISAR
........................................................................................................................................
....................................................................................................................................[2]
(e) Complete the query-by-example grid below to select and show the brochure
number, property type and price of all properties with a garage below $200,000. [4]
SAMREEN
2 Page
NISAR
(a) Give the number of fields that are in each record.
...................................................................................................................................[1]
(b) State which field you would choose for the primary key.
........................................................................................................................................
SAMREEN
Give a reason for choosing this field.
........................................................................................................................................
....................................................................................................................................[2]
3 Page
NISAR
........................................................................................................................................
....................................................................................................................................[2]
(d) Complete the query-by-example grid below to select and show the student names
only of all students with less than 40 marks in both Maths and English. [3]
SAMREEN
4 Page
(ii) State which field you would choose for the primary key.
....................................................................................................................................[1]
NISAR
(b) Give a validation check that you can perform on each of these fields. Each
validation check must be different.
Catalogue Number ........................................................................................................
Size ................................................................................................................................
Price ..............................................................................................................................
Arrived ......................................................................................................................[4]
SAMREEN
(c) Complete the query-by-example grid below to select and show the Catalogue
Number, Title and Price of all unsold pictures by the artist ‘Twister’. [5]
5 Page
(a) Give the data type you would choose for each field.
Boat Name ....................................................................................................................
Model ............................................................................................................................
Engine Power ................................................................................................................
Number of Seats ...........................................................................................................
Life Raft ........................................................................................................................
Day Price ..................................................................................................................[3]
(b) State a validation check that you can perform on each of these fields. Each
validation check must be different.
NISAR
Boat Name ....................................................................................................................
Model ............................................................................................................................
Number of Seats ...........................................................................................................
Day Price ..................................................................................................................[4]
(c) Complete the query-by-example grid below to select and show the Boat Name,
Model and Day Price of a day’s hire for all boats with 4 seats and an Engine Power
SAMREEN
of more than 100 hp.
6 Page