Pakistan International School Jeddah - English Section: Information & Communication Technology (0417) Task 3 (Queries)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

1

Pakistan International School Jeddah - English Section


Information & Communication Technology (0417)
Task 3 (Queries)

Name: _______________________________ Grade Y10-______ Date: _________

Evidence Document
• Open the file EVIDENCE.RTF
• Make sure your name, Centre number and candidate number will appear on every page of your
Evidence Document.
• Save this as a word processed document in your work area with the filename EVIDENCE
followed by your candidate number, for example, EVIDENCE9999

You will need your Evidence Document to place your screenshots in when required.

Task-3a
1 Open database Task-3a.
2 Examine the data given in DEGREES table and FACULTY table.
3 In DEGREES table:
• set the Course_Code field as the primary key.
• make sure Full_Time is displayed as checkbox
• restrict the data entry in the Length field to accept only numbers of 6 or less.

EVIDENCE 1
Take screenshot evidence showing how you have limited data entry in the Length
field. Insert this screenshot into your Evidence Document.

4 In FACULTY table, set Faculty_Code field as the primary key.


5 Create a relationship between the Faculty_Code field in the faculty table and the Faculty_ Code
field in the degree table.

EVIDENCE 2
Take screenshot evidence showing the relationship between the tables. Insert this
screenshot into your Evidence Document

1920-Y10-Task 3 (Queries)
2

6 Using fields from both tables, produce a query which selects only those records where the
– Qual_Code is PHD
– Length is 4 or more
Shows only the fields Subject, Length, Head_of_Faculty and Campus
Save your query with the name of Step 6

EVIDENCE 3
Take screenshot evidence showing the criteria. Insert this screenshot into your
Evidence Document

7 Using fields from both tables produce a query which:


• contains a new field called Total_Enrolled which is calculated at run-time and displayed as
integer. This field will calculate the total number of students enrolled by adding Male plus
Female.
• selects only those records where the
– Subject contains the word Science
– Qual_Code is BS or BA –
Full_Time is Yes
Shows only the fields Course_Code, Qual_Code, Subject, Faculty, Male, Female, Full_ Time and
Total_Enrolled
Save your query with the name of Step 7

EVIDENCE 4
Take screenshot evidence showing the criteria used in query. Insert this screenshot
into your Evidence Document

Task-3b
You are now going to prepare some reports for Tawara Training. Make sure all currency values display
the same currency symbol and are set to 2 decimal places.
Dates are to be displayed in the format dd-MMM-yy.

8 Open database Task-3b.


9 In APPRENTICES table set the Vacancy_ID field as a primary key. Before saving make sure:
• Closing_Date is formatted as dd-MMM-yy
• Wage is displayed as currency with two decimal places
• Day_Release is set to be display as Yes/No
10 In FRAMEWORK table Set the Subject_ID field as a primary key.

1920-Y10-Task 3 (Queries)
3
11 Save the data.

EVIDENCE 5
Place in your Evidence Document screenshot(s) showing the type of relationship
between the two tables.

12 Create a one-to-many relationship between the Subject_ID field in the framework table and the
Subject_Ref in the apprentice table.
13 Apprentices receive their weekly wage plus an additional 4% if they meet training targets.
Using fields from both tables produce a query which contains a new field called Bonus_Wage
which is calculated at run-time and displayed as currency. This field will calculate the Wage plus
4% of the Wage shows only the records where the:
• Level is Advanced or Higher
• Closing_Date is on or before 31-Aug-18
• Subject_Name excludes Accounting
Shows only the fields Vacancy, Level, Closing_Date, Employer_Name, Day_Release, Wage,
Bonus_Wage
Save your query with the name Step 13.
14 Produce an extract from all the data which:
o selects only those records where the:
– vacancy includes Engineer
– level is Intermediate
– wage is 150 or more
o shows only the fields Vacancy_ID, Vacancy and Wage in this order
o sorts the Wage in ascending order.
Save the extract with the name Step 14.

EVIDENCE 6
Take screenshot evidence showing the criteria used in query. Insert this screenshot
into your Evidence Document

15 Export the extract created in step 14 in rich text format.


Save the exported file in your work area.

EVIDENCE 7
Place in your Evidence Document a screenshot to show the exported file saved in
your work area. Make sure there is evidence of the file type.

Task-3c
16 Using a suitable package, open Task-3c database.
17 In CRUISES table set the:
• Cruise_Ref field as a primary key.

1920-Y10-Task 3 (Queries)
4
• Sail_Date as Date/Time field. Make sure to display the date as dd-MMM-yy .
Save the data.
18 In SHIPS table, set the Ship_Code field as a primary key.
19 Create a one-to-many relationship between Ship_Code in the ships table and the Ship_Ref field in
the cruises table.

EVIDENCE 8
Place in your Evidence Document screenshot(s) showing the relationship between the
two tables.

20 Using fields from the cruises table, produce a query that selects only the records where:
– Theme is Art or Music
– Departure_Port is Miami
Shows only the fields Departure_Port, Destination, Sail_Date, Theme, Duration and Passengers
– Save the query with the name of Step 20.

EVIDENCE 9
Take screenshot evidence showing the criteria used in query. Insert this screenshot
into your Evidence Document

21 Using fields from both tables produce a query that:


o selects the records where:
– Ship_Name includes the text sea
– Duration is 14 or more
– Board is Full
– contains a new field called Passenger_Nights which is calculated at run-time.
This field will multiply the Duration field by the Passengers field
Shows only the fields Sail_Date, Cruise_Ref, Ship_Name, Departure_Port, Destination, Duration,
Passengers, Board and Passenger_Nights
Save the query with the name of Step 21.

EVIDENCE 10
Take screenshot evidence showing the criteria used in query. Insert this screenshot
into your Evidence Document

22 Using fields from both tables produce an extract which:


o selects only the records where:
– Theme is Taster
– Duration is less than 4
Shows only the fields Cruise_Ref, Ship_Name and Duration in this order with data and labels
displayed in full.
Save the extract with the name of Step 22.

1920-Y10-Task 3 (Queries)
5
EVIDENCE 11
Take screenshot evidence showing the criteria used in query. Insert this screenshot
into your Evidence Document

23 Export the extract created in Step 22 in portable document format.


Save the exported file in your work area.

EVIDENCE 12
Place in your Evidence Document a screenshot to show the exported file saved in your
work area. Make sure there is evidence of the file type.

1920-Y10-Task 3 (Queries)

You might also like