IT540Assignment3 Solution - Organization Access Database with queries

Write SQL statements (queries) to answer the following questions (Make sure to replace XXX with your initials!):

1. Write an SQL statement to list all columns and all rows for the table Service. Save the query results as XXXQ1.

2. Write an SQL statement to list LastName, FirstName, and CellPhone for all employees having an experience level of Master. Save the query results as XXXQ2

3. Write an SQL statement to list the names of employees who have worked on a property in New York. Use a subquery. Save the query results as XXXQ3.

4. Answer question 3 but use a join. Save the query results as XXXQ4.

5. Write an SQL statement to list the names of employees who have worked on a property owned by a corporation. You can use either subquery or join for this question. Save the query results as XXXQ5.

6. Write an SQL statement to show the first name and sum of hours worked for each employee. Save the query results as XXXQ6.

7. Write an SQL statement to show the sum of hours worked for each ExperienceLevel of EMPLOYEE. Sort the results by ExperienceLevel, in descending order. Save the query results as XXXQ7.

8. Write an SQL statement to show the sum of HoursWorked for each type of OWNER but exclude services of employees who have ExperienceLevel of Junior. Save the query results as XXXQ8.

What are you waiting for? Get your solution now :)


Get Project Solution Now

Comments