Access Worksheet - Queries Part 1

This first worksheet limits the queries to only one database table.

Having completed Lab 10 and 11 and the lecture on Access, you should be able to perform the following tasks:

For this worksheet we will use the following Access table (Employee):

 

Your employer has determined a number of questions they want the database management system to answer. You must obtain answers to the questions posed by your employer.

Instructions: Use the Employee table above to fill in the design grid for each question.

  1. Display for each employee, his or her employee identification, department name, last and first name.

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Display in alphabetical order the last names of employees who live in Indiana. (IN)

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Display employees (first and last name) who are older than 45. Sort by increasing age. (Hint use the birthdate)

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4. Display the full names and SS number of employees who work for the marketing (MAR) or the finance department and where hired before the January 1, 2000.

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. List the names (first and last) of employees who have the same area code as the company (765)

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6. List alphabetically the full names of employees plus their departments who do not have an email listed.

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7.List all employees (first and last name) sorted by their departments who were hired last year.

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8. List the SS#, first name and department of employees with the last name of Smith.

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9.List in alphabetical order first by last name then by first name, the employees who live on Beach Street

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10.List the home phone number and names of the employees who live in Muncie, IN.

Field:

 

 

 

 

 

Table:

 

 

 

 

 

Sort:

 

 

 

 

 

Show:

Criteria:

 

 

 

 

 

Or: