You are on page 1of 3

CW-13 & 14 / ICT / S3 / CA2 / 2020-2021

TASK 1: FOLDER SETUP

1 Create a folder in your Classwork\Practical folder and name it as CW-14 and 15.

TASK 2: DATA MANIPULATION – QUERIES: CALCULATED FIELDS, SUBSET OF DATA AND WILDCARD
SEARCH.

Part 1: Creating query with calculated fields.

2 Open the Asset 18.03.accdb file using a suitable application.

3 Create a suitable relationship between 3 tables. Make sure to set the primary keys on every
table. [6]

Hint: Customer can make many appointments and stylists can be appointment many times.

4 Based on the Customers table, create a query that displays the three fields-CustomerID,
Amount Paid, and Appointment Date. [3]

Save the query as Amount Customer Paid.

5 In Amount Customer Paid query, add two calculated fields. The details are shown below:
Calculated Field Name Expression

VAT (VAT: [Amount Paid] *0.175)

Total Cost (Total Cost: [VAT] + [Amount Paid])

Run the queries and make sure they display the newly created calculated fields. [6] 6 In

Amount Customer Paid query, add two more calculated fields. [6]

Calculated Field Name Expression

Discount Discount: 5/100

Final Total Cost Final Total Cost: [Total Cost]-[Discount]

7 Add Customer Name field to your Amount Customer Paid query. Make sure it stays as a
second field right next to CustomerID in Data Sheet view. [2]
8 Sort the data in Amount Customer Paid query in ascending order based on the Customer
Name Field. [2]

[Total Marks: | 25]


CW-13 & 14 / ICT / S3 / CA2 / 2020-2021

Part 2: Searching database to select subsets of data.

9 Create a new query that displays CustomerID, Customer Name, Hair Length and Hair
Treatment. This query should only display the customer/s which Hair Length is less than 16.

Name the query as qry-1-Hair Length Less Than 16. [3]

10 Create a new query that displays CustomerID, Customer Name, Amount Paid and
Appointment Date. This query should only display the customers who paid (Amount Paid)
greater than or equal to 25.

Change the currency symbol of the Amount Paid field in your Customer table into
Philippines’ Currency Symbol.

Name the query as qry-2-Amount Paid Greater or Equal 25. [5]

11 Create a new query that displays CustomerID, Customer Name and Appointment Date. This
query should only display the customers who made an appointment since March 1, 2015
onwards.

Name the query as qry-3-Appointment made on March 1 2015 onwards. [3]

12 Create a new query that displays CustomerID, Customer Name and Appointment Date. This
query should only display the customers who made an appointment before March 3, 2015.

Name the query as qry-4-Before March 1 2015. [3]

13 Create a new query that displays CustomerID, Customer Name and Appointment Date. This
query should only display the customers who made an appointment between March 1, 2015
and March 3, 2015.

Name the query as qry-5-Between March 1 2015 and March 3 2015. [4]

14 Create a new query that displays CustomerID, Customer Name, Amount Paid and
Appointment Date. This query should only display the customers who made an
appointment since March 1, 2015 onwards and paid less than 30.
Name the query as qry-6-Less than 30 and since March 1 2015. [4]

15 Create a new query that displays CustomerID, Customer Name, Hair Color, Amount Paid and
Appointment Date. This query should only display the customers who made an appointment
since March 3, 2015 onwards, paid greater than or equal to 30, and with a hair color of
black.

Name the query as qry-7-Greater than 30, March 1 2015, Black. [6]
CW-13 & 14 / ICT / S3 / CA2 / 2020-2021

Part 3: Wildcard Searches.

16 Create a query that displays the Customer ID, Customer Name and Amount Paid with a
Customer Name that starts with letter “J” and paid less than or equal to 27.

Name this query as qry-8-Starts with J and paid <= 27 . [4]

17 Create a query that displays the Customer ID, Customer Name, Hair Length and Amount
Paid with a Customer Name that ends with letter “H” and paid less than or equal to 27.

Name this query as qry-9-Ends with H and hair length >= 3. [4]

18 Create a query that displays the Customer ID, Customer Name and Amount Paid with a
Customer Name that ends with letter “th” and paid an amount that starts with ‘2’.

Name this query as qry-10-Ends with th and amount starts with 2. [4] Part 4: Submission

Process

19 Rename the Asset 18.03.accdb as CW-14and15-Fullname.

20 Send the database to merbertjeruela@gmail.com with CW-14 and 15 as a subject of your


email.

21 End of Class Work

[Total Marks: | 40]

You might also like