CSEC® Information Technology Past Papers
CSEC® Information Technology Past Papers
DO NOT WRITE IN THIS AREA DO NOT WRITE IN THIS AREA DO NOT WRITE IN THIS AREA
3. DATABASE MANAGEMENT
crime_type
Ccode Category
CM1 Murder
CM2 Robbery
CM3 Domestic Violence
crime_stats
Ccode Division Committed
CM3 A 50
CM3 C 80
CM1 A 30
CM1 E 10
CM2 B 120
CM2 D 75
CM2 A 200
CM1 B 20
CM3 D 15
CM2 C 90
CM3 E 20
(a) State the data type of the Committed and Category fields.
.............................................................................................................................................
.............................................................................................................................................
(2 marks)
(b) How many records and fields are there in the crime_type table?
.............................................................................................................................................
.............................................................................................................................................
(2 marks)
(c) In the crime_stats table, why is the Ccode field unsuitable as a primary key?
.............................................................................................................................................
.............................................................................................................................................
(1 mark)
(d) If the tables are joined by the Ccode fields, how many robberies are committed in
Division B?
.............................................................................................................................................
(1 mark)
Query1
SumOfCommitted
710
(f)
It is expected that crimes committed in 2015 will be reduced by 5% compared with the
2014 figures. Write the formula for a calculated field to show the expected crime for 2015.
Name this field target2015.
..............................................................................................................................................
(2 marks)
DO NOT WRITE IN THIS AREA DO NOT WRITE IN THIS AREA DO NOT WRITE IN THIS AREA
(g) The following query was created from the data in the database.
.................................................................................................................................
.................................................................................................................................
(3 marks)
(ii) How many records will be displayed when the query is executed?
.................................................................................................................................
(1 mark)
(h) The following report was generated from the data in the database.
CM1
A 30
B 20
E 10
Sum 60
CM2
A 200
B 120
C 90
D 75
Sum 485
CM3 A 50
C 80
D 15
E 20
Sum 165
Grand Total 710
State:
Total 20 marks