Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 27 (90 points) Please consider the following relational database tables. Primary keys are underlined, and foreign keys are marked with an asterisk. - Date

image text in transcribed
image text in transcribed
Question 27 (90 points) Please consider the following relational database tables. Primary keys are underlined, and foreign keys are marked with an asterisk. - Date format: MM/DD/YYYY, for example, 09/29/2023. Questions: Provide the appropriate SQL statements necessary to answer the queries that follow. a) Write an SQL query to list the employee's name, item number, order date, and unit price of the item for employees with a salary below $75,000. (20 points) b) Write an SQL query to show the total dollar amount of purchase orders made to each vendor in January 2023, including their names and addresses. Present the query results with the vendor names in reverse alphabetical order. ( 30 points) c) Write an SQL query to display the average salary of employees by grade, rounded to the 2nd decimal place, for those paid in October 2023. Additionally, the query should include the order date, the total purchase amount for each order date, and the number of employees for each order date. The results should be presented in alphabetical order based on employees' names and addresses. ( 40 points; Rename your fields if necessary.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing And Assurance Services

Authors: William Messier, Steven Glover, Douglas Prawitt

8th Edition

0078025435, 9780078025433

More Books

Students also viewed these Accounting questions

Question

highlight how to collect and record interview and diary based data;

Answered: 1 week ago

Question

clarify the relationship between research, theory and practice;

Answered: 1 week ago

Question

evaluate the quality of your data;

Answered: 1 week ago