You are on page 1of 1

QUESTIONS

The database provided has been populated. Using your understanding of Databases, create primary keys &
relationships between the tables where necessary. [6 marks]

Create, execute and execute the following queries after primary keys and relationships have been created.
1. Create a query to show all employees living in Kingston with dependents. Name the query Kingston. [2
marks]
2. Create a query to display all employees who have been with Global Distributors Unlimited for more
than 8 years. Name this query Senior Staff. [2 marks]
3. Use a query to show employees who have been with the company less than 5 years. Name the query
Junior Staff. [2 marks]
4. Use a query to display all employees who are not staff. Name this query Non-Staff. [2 marks]
5. Display all STAFF with the letters ER within their first name and either ER, OR or AR in their last
name. Name this query ER. [2 marks]
6. Display all employees whose last name end with the letter R. Name this query R. [2 marks]
7. Display Employees in the Courier Department who have been with the company for over 8 years and
with OR ending their Last Name. Name this query Last R. [2 marks]
8. Design a query that will display all employees living in Kingston, St. Andrew or St. Catherine. Call this
query Kingstonians. [2 marks]
9. Design a query that will display all employees NOT living in Kingston, St. Andrew or St. Catherine. Call
this query Ruralites. [2 marks]
10. Design a query that will display all employees who are Staff, Monthly Paid, make no O/T, no Bonus and
earn between $80000 and $90000. Name this query Less Than 90. [2 marks]
11. Create a query to show all supervisors with first names beginning with an A, containing EI and ends
with an A with at least 1 dependent. Name this query Super-Dependents. [2 marks]
12. Create a query that will display all weekly paid employees, their weekly income, monthly income and
yearly income assuming there are 4 weeks in every month and 52 weeks in a year. Weekly-Paid is the
name of this query. [2 marks]
13. Create a query to show all employees born before 1989, hired after 2002 and are staff members without
an E in their first name. Name this query Recent-Staff. [2 marks]
14. Create a query to display employees with dependents born before 12/01/2009. Name this report
Dependents1. [2 marks]
15. Create a query to show employees with more than 1 dependent. Name this query Multiple-Dependents.
[2 marks]
16. Create a query Parish-Prompt, which will prompt the user for a parish, and then display all employees
from that parish. [2 marks]
17. Create a query to prompt the user for a date and then display all employees hired before that date. Save
this query as Hire-Prompt. [2 marks]
18. Create a query to prompt the user for a Department and then display all employees employed in that
department. Save this query as Department-Prompt. [2 marks]
19. Create a query to calculate the age of all employees. Name this query Ages[2 marks]
20. Create a query to calculate how long all employees have been with the company. Name this query
Tenure[2 marks]
21. Create a query to show employees with dependents living in Manchester or St. James. Name this report
Country-Dependents. [2 marks]
22. Create a query to show employees with dependents living in Manchester and St. James. Name this
report Manchjam-Dependents. [2 marks]

TOTAL [50 MARKS] ‘[-.-]’

You might also like