0% found this document useful (0 votes)
7 views2 pages

Year 11 ICT Test2

The document outlines a database practice paper consisting of three sections. Section A involves extracting specific fields from a database query and setting criteria for salary records. Section B and C detail tasks related to importing CSV files into a database, setting data types, establishing primary keys, creating queries, and generating PDF extracts with specific requirements.

Uploaded by

clever.banda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Year 11 ICT Test2

The document outlines a database practice paper consisting of three sections. Section A involves extracting specific fields from a database query and setting criteria for salary records. Section B and C detail tasks related to importing CSV files into a database, setting data types, establishing primary keys, creating queries, and generating PDF extracts with specific requirements.

Uploaded by

clever.banda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name Date

Database Practise Paper- 11ICT


Section A
1 Alex is trying to extract some data from a database table using a query. The image below
shows an extract of the query design.

a Mark on the diagram to show only the fields First Name, Last Name and Salary.
b Write the criteria to show only the records where the salary is greater than $2000.

Section B
2 Using a suitable software package, open the file Employees.csv and examine the contents.
a Import the contents of this file as a new table into your database using a suitable
database package. Make sure the field names are adjusted where there is a need.
b Set appropriate data types for each field.
c Set the Emp_ID as the primary key.
d Place in your evidence document showing the fieldnames and datatypes used
e Create a query that:
 shows only the fields Emp_ID, First_Name, Last_Name, Holiday_Allowance in this order
 shows only the records where the occupation contains the word ‘Design’
 shows only the records of employees who are entitled to a holiday allowance
 sorts the data in ascending order of Last_Name.
f Make sure you write your name (You can add fictitious data to make it work) at the bottom
of your extract. Then save this extract as a PDF with the name Employee_Extract.
g Print this PDF document.

Section C
3 Alex would like to add another table to his database. Import the Countries.csv as a new
table into your database.
a Set appropriate data types for the table.
b Set the Country_Code as the primary key for the table.
c Create a one-to-many relationship between the Code field in the Countries table and
the Country_Code field in the Employees table.
Show evidence of the relationships created in you evidence file

1
d Create an extract that:
 Has a calculated field called Adjusted_Points which is calculated at runtime.
The field will calculate 2 points increment on the existing holiday points for each employee.
 Shows all the records where:
 Country_Name begins with letter ‘M’ or ‘G’
 Adjusted_Points is greater or equal to 6.
 Shows only the fields Emp_ID, First_Name, Last_Name, Occupation,
Country_Name in this order.
e Sort the data in descending order of Country_Name.
f Save the extract as a PDF with the file name Employee2_Extract. Print this PDF document

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