You are on page 1of 4

T-3 PRACTICAL WORKSHEET

NAME: SUBJECT: Computer Science Practical Worksheet

DATE: GRADE/SECTION: 4

TOPIC: Skill 6
I. Follow the instructions:
Question 1:

access_sampledatabase (3).accdb
1. Open Sample database
2. Create a new query.

3. Select the Customers table to include in your query.

4. Click Create.
5. Add the following fields from the Customers table to your query:
First Name
Last Name
City
Zip Code

1
6. Set the following criteria:
In the City field, type "Raleigh" to return only records with Raleigh in the City field.
In the Zip Code field, type "27513" in the or: row to return records that are either in Raleigh or
zip code 27513.

7. Run the query form the design tab. If you entered the query correctly, your results will include
customers who live in Raleigh OR in zip code 27513.

8. Save the query with the name of Customers who live in Raleigh.

2
Question 2:

access_sampledatabase (3).accdb
1. Open Sample database
2. Create a new query.
3. Select the Query Design command from the Create tab on the Ribbon.

4. Double click on two tables “Customers” and “Orders Table” on Object Relationship Pane.

5. Click Close.
6. Double-click the thin section of the join line between two tables to edit its join direction.

7. The Join Properties dialog box will appear. Select an option to choose the direction of your join.
In our example, we'll choose option 3 because we want a right-to-left join.

3
8. From the Customers table double click the following: First Name, Last
Name, Street Address, City, State, Zip Code, and Phone Number. Also, Double Click the ID
number from the Orders table.

9. Set field criteria by entering the desired criteria in the criteria row of each field. We want to set
two criteria: Not in ("Raleigh") in the City field, and Like ("919*") in the Phone Number field.
This will find customers who do not live in Raleigh but who do live in the 919 area code.

10. Run the query by clicking the Run command on the Design tab.

You might also like