Year 11 ICT Test2
Year 11 ICT Test2
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