Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5.Assume that based on your suggestions and their additional requirements, Garde

ID: 3853549 • Letter: 5

Question

5.Assume that based on your suggestions and their additional requirements, Garden Glory designs a trail database saved as Garden_Glory.accdb in MS Access 2013. Query the trail database using SQL statements and answer the following questions. For each SQL statement you write, show the results based on your data (you could press the "PrtSc - Print Screen" key to capture the results image) .

5.1) Write SQL statements to list all columns for all tables.

5.2) Write an SQL statement to list the LastName , FirstName and CellPhone for all employees having an experience level of Master .

5.3) Write an SQL statement to list the LastName , FirstName and CellPhone for all employees having an experience level of Master and a FirstName that begins with the letter J .

5.4) Write an SQL statement to list the Name of employees who have worked on a property in New York .

5.5) Write an SQL statement to list the names of employees who have worked on a property owned by a Corporation .

5.6) Write an SQL statement to show the name and sum of HoursWorked for each employee.

5.7) Write an SQL statement to show the sum of HoursWorked for each ExperienceLevel of EMPLOYEE. Sort the results by ExperienceLevel in descending order.

5.8) Write an SQL statement to show the sum of HoursWorked for each Type of OWNER but exclude services of employees who have an ExperienceLevel of Junior and exclude any Type with less than three members.

Explanation / Answer

Question 5.1

desc <table name>;

this will list the table with all the coloumn name and their types.

Qustion 5.2

select LastName,FirstName,CellPhone from EMP where Experience="Master";

Question 5.3

select LastName,FirstName,CellPhone from EMP where Experience="Master" and FirstName Like 'J%';

Question 5.4

select FirstName from EMP where Property="New York";

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote