Databases and SQL – IGCSE Computer Science (0478)

121 questions · page 9 of 9

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
121
0478/22/M/J/16 · Question 7May/June 2016Paper 2213 marks
Loading question…
Question text

7
A database, SOFASELECT, was set up to show the prices of suites, sofas and chairs for sale from
an online furniture warehouse. Part of the database is shown below.
Brochure
Number
Number
Description
Material
Colour
Price in $
Number
of Seats
of Pieces
Sofa
SF17
2
1
Leather
Red
950
Sofa
SF19
3
1
Vinyl
Black
1,000
Suite
SU10
4
3
Velvet
Green
1,500
Suite
SU23
5
3
Leather
Brown
950
Recliner chair
RC01
1
1
Leather
Cream
600
Chair
CH16
1
1
Vinyl
Red
250
Recliner sofa
RS23
4
1
Leather
Cream
1,200
Chair
CH10
1
1
Velvet
Red
175
(a) How many fields are in each record?
… [1]
(b) State which field you would choose for the primary key.
…
Give a reason for choosing this field.
…
… [2]
(c) State the data type you would choose for each of the following fields.
Number of Seats …
Price in $ … [2]
(d) The query-by-example grid below selects all the furniture in cream leather.
Field: Description
Material
Colour
Price in $
Brochure Number
Table: SOFASELECT
SOFASELECT
SOFASELECT
SOFASELECT
SOFASELECT
Sort:
Descending



Show:
Criteria:
= ‘Leather’
= ‘Cream’
or:
Show the output from the query-by-example.
…
… [3]
(e) Complete the query-by-example grid below to select and show the brochure number, material,
colour and price of all the furniture with 3 or more seats.
Field:
Table:
Sort:
Show:
Criteria:
or:
[5]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every reasonable
be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local

Advertisement