0% found this document useful (0 votes)
32 views4 pages

CSEC® Information Technology Past Papers

The document discusses a CRIME database with two tables: crime_type containing crime codes and categories, and crime_stats containing crime codes, divisions, and committed crimes. It asks several questions about the tables, including data types, records, using Ccode as a primary key, joining tables on Ccode, and writing a query to show the committed crimes for the category 'Domestic Violence'.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

CSEC® Information Technology Past Papers

The document discusses a CRIME database with two tables: crime_type containing crime codes and categories, and crime_stats containing crime codes, divisions, and committed crimes. It asks several questions about the tables, including data types, records, using Ccode as a primary key, joining tables on Ccode, and writing a query to show the committed crimes for the category 'Domestic Violence'.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

- 10 -

DO NOT WRITE IN THIS AREA      DO NOT WRITE IN THIS AREA      DO NOT WRITE IN THIS AREA  
3. DATABASE MANAGEMENT

Consider the database CRIME with two tables shown below.

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)

GO ON TO THE NEXT PAGE


01229032/JANUARY/F 2016
*0122903210*
0122903210
- 11 -
DO NOT WRITE IN THIS AREA      DO NOT WRITE IN THIS AREA      DO NOT WRITE IN THIS AREA  

(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)

(e) The result of a query is given below.

Query1
SumOfCommitted
710

(i) Which of the two tables is used to perform the query?



.................................................................................................................................
(1 mark)

(ii) What is the purpose of the query?

.................................................................................................................................
(1 mark)

(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)

GO ON TO THE NEXT PAGE


01229032/JANUARY/F 2016
*0122903211*
0122903211
- 12 -

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.

Field: Category Division Committed


Table: crime_type crime_stats crime_stats
Sort:
Show:
Criteria: “Domestic Violence” >50
or:

(i) What is the purpose of the query?

.................................................................................................................................

.................................................................................................................................
(3 marks)

(ii) How many records will be displayed when the query is executed?

.................................................................................................................................
(1 mark)

GO ON TO THE NEXT PAGE


01229032/JANUARY/F 2016
*0122903212*
0122903212
- 13 -
DO NOT WRITE IN THIS AREA      DO NOT WRITE IN THIS AREA      DO NOT WRITE IN THIS AREA  

(h) The following report was generated from the data in the database.

Crime Statistics for 2014


CCode Division Committed

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:

(i) The table used to create the report .........................................................................


(1 mark)

(ii) The title of the report .............................................................................................
(1 mark)

(iii) The field used to group the records ........................................................................


(1 mark)

(iv) Another field that can be used to group the records ..............................................
(1 mark)

(v) What 710 represents in the report ..........................................................................


(1 mark)

(vi) The feature that was used to produce the figure in (v) ...........................................
(1 mark)

Total 20 marks

GO ON TO THE NEXT PAGE


01229032/JANUARY/F 2016
*0122903213*
0122903213

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy