Databases – IGCSE Information and Communication Technology (0417)
Question text
8
A club is setting up a database to store details of its members.
(a) Complete the data dictionary of the database, adding the most appropriate data type for each
field.
Field name
Data type
Membership_number
Number
Member_name
Membership_fee_paid
Boolean
Telephone_number
Expiry_date_of_membership
Membership_fee_amount
[4]
(b) The club secretary wishes to find all the junior members who have paid their membership fee
which would be less than $100.
He searches for these members by typing in the following search criteria.
Membership_fee_amount < 100 AND Membership_fee_paid ="Y"
He now wishes to invite selected members to a special evening. These members will be those
with a membership number over 200 as well as members whose membership expiry date is
before 1 Jan 2017.
Write search criteria to list all the members that should be invited.
…
…
[5]
06_0417_13_2017_1.1
(c) Discuss the benefits and drawbacks of storing membership details on a computer database.
…
…
…
…
…
…
…
…
…
…
…
…
[6]
Question text
4
The manager of a restaurant uses a database to store data about the food the restaurant uses.
Part of the database is shown below.
Food_type
Packs_in_stock
Last_order_received
Re-order
Lentils
68
06/03/2017
N
Rice
54
10/03/2017
Y
Flour
19
01/02/2017
Y
Ghee
34
05/03/2017
Y
Below is a list of data types. Next to each one write down the field name which most closely
matches that data type. Each answer must be different.
Date …
Text …
Boolean …
Numeric …
[4]
Question text
11
A teacher has asked you to use a word processor to create a table of some Indian cities together
with their populations. The required layout is shown below.
Populations of Indian cities
City
Population
City
Population
Mumbai
New Delhi
Bangalore
Ahmedabad
Kolkata
Chennai
(a) Describe how you would create this table in a word processor.
…
…
…
…
…
…
…
…
…
… [5]
(b) When you have completed the table the teacher asks you to add some extra cities. You will
need to expand the table to add the extra cities.
Describe how you can do this.
…
…
…
… [2]
Question text
15 Part of a database report showing August temperatures in several cities in India is shown below.
Name of City
Max_temp
Min_temp
Kolkata
33
26
Chennai
34
26
Mumbai
31
26
Hyderabad
31
24
Allahabad
35
26
Describe how you would create a calculated field called temp_diff to show the difference between
the maximum and minimum temperatures.
…
…
…
…
…
… [3]
Question text
15 Blue Screen is a music band which is rapidly gaining success. They are planning a world tour and
wish to organise their concerts efficiently. Two tables have been created in a database. One table
contains details of the venues and another table contains details of the concerts.
Table A: Venue details
Venue ID
Venue Name
City
Website
Capacity
WT1
Cambridge Open Air Arena
Cambridge
www.COAarena.com
12 500
WT2
Holmes Arena
Auckland
www.holmesarena.co.nz
12 500
WT3
Centinnel Stadium
Beijing
www.centinnel.com
17 000
WT4
Western Stadium
California
www.westernus.com
18 000
WT5
Pembroke Theatre
Cambridge
www.PCT.co.uk
15 000
Table B: Concert details
Concert ID
Location ID
Date of concert
Number of special tickets
1
WT1
01/11/2016
20
2
WT2
01/12/2016
25
3
WT3
05/12/2016
15
4
WT2
02/12/2016
25
5
WT5
02/11/2016
10
6
WT1
03/11/2016
20
7
WT3
06/12/2016
16
(a) Describe how a relational database can be created using tables A and B.
…
…
…
…
…
…
…
… [4]
(b) Flat file databases are far less efficient than relational databases but they are still used.
Describe the advantages of using a flat file database compared to a relational database.
…
…
…
… [2]
Question text
10 Members of a US Conservation Unit recently discovered a species of frog new to New York. They
identified the frog using an expert system called ARK.
(a) Describe how an expert system can be used to help identify a newly discovered type of
animal.
…
…
…
…
…
…
…
… [4]
(b) Identify two other applications which make use of expert systems.
1 …
…
2 …
…
[2]
(c) A developer has created a plan for a new database.
Field Name
Data Type
Length of Field
Comment
Animal_ID
Text
5
2 letters followed by
a 3 digit number
Name_of_animal
Text
25
Animal_endangered?
Boolean
Years_on_register
Numeric
For each named field, give an appropriate validation check the developer should use.
Field Name
Validation Check
Animal_ID
Name_of_animal
Animal_endangered?
Years_on_register
[4]
(d) A report is generated from the results. The report contains headers and footers.
Explain, using examples, why headers and footers are used.
…
…
…
…
…
…
…
… [4]
Question text
11 A manager of a computer store has created a relational database to keep track of its orders. She
has created two tables that are linked together.
Table A stores the products.
Table B stores the order details.
The following data shows some records from the database.
Table A: products
Product_ID
Product_name
Unit_price
1232
PC Base unit
$300
1246
Monitor TFT
$250
1678
Mouse
$9
2314
Keyboard
$9
3214
Laser printer
$250
Table B: order details
Order_ID
Product_ordered
Quantity
1231
1232
1
1233
1246
10
1234
1678
15
1235
2314
4
1236
2314
16
1237
3214
20
(a) Name the most suitable primary key in the products table.
… [1]
(b) Name a suitable foreign key in the order details table.
… [1]
(c) On the data shown in the tables above, the following search is to be carried out:
(Unit_price>$250)
Write down the Order_ID resulting from this search.
… [1]
(d) On the data shown in the tables at the start of question 11, the following search is to be
carried out:
(Product_ID>2000) AND (Quantity<20)
Write down the Order_ID(s) resulting from this search.
… [2]
(e) The store has created a report with a new field called total_price to be calculated at run time.
This field will contain the number of units ordered multiplied by the price of each unit.
Write an expression to produce this result.
…
… [2]
Question text
9
You have completed a word processed report for a History project on the First World War. You set
the computer to check the grammar and spelling.
Explain why you still need to check the spelling and grammar visually.
…
…
…
…
…
… [3]
Question text
10 A ferry connects two countries. When car drivers approach the ferry they have to check in to confirm
the details they have already booked. If they drive in to the self check-in lane, details of the car are
automatically input to a computer. The terminal which is used for the driver to identify themselves
produces a personalised welcome message on a screen. There is a database which contains details
of the driver and the car.
(a) Write down the data which is automatically input to the computer.
…
…
[1]
(b) Other than your answer to (a) give two items of data stored in the computer database.
1 …
…
2 …
…
[2]
(c) Explain how Optical Character Recognition is used before the computer processes the data.
…
…
…
…
[2]
(d) Explain the computer processing which takes place to produce the personalised message.
…
…
…
…
…
…
[3]
06_0417_11_2016_1.17
Question text
11
Justdiscs Limited stocks many music CDs. Below is a small selection of CDs stored on their
database.
The data has been sorted on two fields.
Artist_name
CD_title
Price
Year_released
Number_of_tracks
Giggs
Let Em Ave It
$10.99
2010
18
Sabiton
Heroes
$9.99
2014
12
Luke Slater
Alright on Top
$8.99
2001
10
Arctic Monkeys
Humbug
$8.99
2009
12
Oasis
Definitely Maybe
$8.99
2014
11
Erasure
Erasure
$7.99
2009
11
Jimmy Smith
Cool Blues
$4.99
2002
7
(a) Write down the field which was used as the primary sort in the database and the order in which
it was sorted.
…
…
[2]
(b) Write down the field which was used as the secondary sort in the database and the order in
which it was sorted.
…
…
[2]
(c) Peter is the owner of the shop. He receives requests from customers about the CDs he has
in stock. He converts these requests into search criteria using comparison and Boolean
operators.
For example, one customer might ask for CDs which were released after 2002 and also those
that have at least 11 tracks. Peter would write this down as:
Year_released > 2002 OR Number_of_tracks >= 11
Write down the search criteria for a customer who wants a list of all the CDs which were
released before 2010 but only if they cost less than $8.99
…
[5]
(d) Write down the names of the artists whose records match the requirements of part (c).
…
[2]
06_0417_11_2016_1.17
Question text
20 Here is some text taken from the CIE website.
Cambridge Primary Checkpoint is designed to help students learn by providing comprehensive
feedback on their strengths and weaknesses in the key curriculum areas - English, mathematics and
science.
The tests are exclusively available to schools that offer Cambridge Primary and are generally taken at
the end of the final year of the programme. They are marked by Cambridge and provide schools with
an international benchmark for learner performance. Each learner receives a statement of
achievement and a diagnostic feedback report, giving schools invaluable information and parents
extra trust in the feedback they receive.
We hold two Cambridge Primary Checkpoint test series each year, covering all major areas of
learning in the Cambridge Primary curriculum frameworks for English, mathematics and science.
Schools teaching Cambridge Primary English as a Second Language curriculum can enter learners for
tests provided by our sister organisation, Cambridge English Language Assessment.
Here is the same text after it has been reformatted.
Cambridge Primary Checkpoint is designed to help students learn by providing
comprehensive feedback on their strengths and weaknesses in the key curriculum areas - English,
mathematics and science.
The tests are exclusively available to schools that offer Cambridge Primary and are generally
taken at the end of the final year of the programme. They are marked by Cambridge and provide
schools with an international benchmark for learner performance. Each learner receives a statement of
achievement and a diagnostic feedback report, giving schools invaluable information and parents
extra trust in the feedback they receive.
We hold two Cambridge Primary Checkpoint test series each year, covering all major areas of
learning in the Cambridge Primary curriculum frameworks for English, mathematics and science.
Schools teaching Cambridge Primary English as a Second Language curriculum can enter learners
for tests provided by our sister organisation, Cambridge English Language Assessment.
Describe the four formatting techniques which have been used.
1 …
…
2 …
…
3 …
…
4 …
…
[4]
06_0417_11_2016_1.17
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 Assess
Question text
12 Maria is the principal of the International Municipal school. She has employed Paulo, a systems
analyst, to create a new database system to store records of her final year IGCSE students.
Examples of the details of the students which will be stored are:
Velia Grimaldi, A3058, Female, 161, Leaving
Giuseppe Campo, A3072 , Male, 177, Staying on to 6th form
Nicola Donati, B3085, Female, 173, Staying on to 6th form
Giovanni Agnelli, C3102, Male, 172, Leaving
(a) Complete the following table by entering the field names and most appropriate data type for
each field.
For any numeric field, specify the type of number.
Field name
Data type
Name
Boolean
Height
[7]
(b) Paulo wishes to save storage space. He does not change the Name field, but decides that two
other fields could have their data shortened.
Apart from the Name field, identify the two other fields and describe how the contents will be
shortened.
Field 1 …
Shortened form 1 …
Field 2 …
Shortened form 2 …
[4]
06_0417_12_2016_1.19
(c) There is no key field set. Maria’s secretary typed in the data to the database in this order:
Giuseppe Campo, A3072, Male, 177, Staying on to 6th form
Giovanni Agnelli, C3102, Male, 172, Leaving
Nicola Donati, B3085, Female, 173, Staying on to 6th form
Velia Grimaldi, A3058, Female, 161, Leaving
Maria can get the database back in to the original order by sorting the data using one field.
Write down the name of this field and the order in which it will need to be sorted.
Field …
Order …
[2]
Question text
11
Enrique has developed a new database system for a supermarket. Below is one record from
the database. He needs to test the validation checks that he has developed for the system.
Barcode
Supplier_code Contents
Price
Reorder_level Weight(kg)
5012427141308 EZ123
Lobster Bisque £2.72
100
0.4
(a) He designed a length check for the Barcode field. However, when he entered the code
5012472141308 by mistake, the system still accepted it.
Describe the check he could have used to prevent this error.
…
…
…
…
[2]
(b) The Reorder_level for each item is never more than 100. He developed a validation check to
make sure this is the case.
However, when he entered the number 100 it was rejected.
Name and describe the validation check he should use and explain why the number could
have been rejected.
…
…
…
…
…
…
[3]
06_0417_13_2016_1.20
(c) He also designed a length check for the Supplier_code field. However, when he entered
EZQ23 by mistake, the system still accepted it.
Describe how he could have prevented this error.
…
…
…
…
[2]
(d) For each field write down the most appropriate data type. For any numeric field specify the
type of number.
Barcode …
…
Supplier_code …
…
Contents …
…
Price …
Question text
19 Discuss the use of spreadsheet software compared to database software to store and manipulate
student data.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
[8]
06_0417_13_2016_1.20
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
06_0417_13_2016_1.20
Question text
11 The following is part of a database of cars (automobiles).
Make Registration_number
Engine_size
Maximum_speed
Colour
Parking_sensors
Frod
K674 TUV
1.3
140
red
Y
Olep
K349 XUP
1.4
140
white
N
Yotoya
R123 AZN
2.0
160
blue
Y
Yotoya
U283 BBV
1.7
175
red
Y
Frod
K943 SCG
1.3
180
blue
Y
(a) You have been asked to design a suitable input screen which will enable this data to be
entered.
Complete the following screen for one car only, before the data is entered.
[6]
(b) For each of the following fields, name and describe the most appropriate validation check.
Assume that the values given in the numeric fields include the minimum and maximum values
for those fields.
(i)
Registration_number …
…
…
…
(ii)
Maximum_speed …
…
…
…
[4]
Operators such as AND, OR, NOT, LIKE, >, <, =, >=, <=, <> can be used to search the database
for information. A search for all the red Frod cars would look like this:
Make = “Frod”
AND
Colour = “red”
Use appropriate operators from the examples given to answer the following.
(c) Write down a search which will produce a list of the cars where the size of engine is greater
than 1.4, in addition to all those cars which have parking sensors.
… [5]
(d) Write down the registration numbers of those cars that match the requirements of part (c).
…
… [2]