Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Consider hte query shown. SELECT vendor_state, vendor_city COUNT ROUND(AVG(invoice total),2) AS invoice_avg FROM invoices JOIN vendors ON invoices.vendor_id- vendors.vendor_id GROUP BY vendor_state, vendor_city ORDER

SQL

image text in transcribed

Consider hte query shown. SELECT vendor_state, vendor_city COUNT ROUND(AVG(invoice total),2) AS invoice_avg FROM invoices JOIN vendors ON invoices.vendor_id- vendors.vendor_id GROUP BY vendor_state, vendor_city ORDER BY vendor_state, vendor_city What does the query tell a manager in a business context? The quer tells the manager how many invoices and the average amount o an invoice for all the vendors n a particular state or al the states where there are vendors with at least one invoice. The query tells the manager how many invoices and the total amount of all the invoices for all the vendors in a particular city, or all the cities where there are vendors with at least one invoice. The query tells the manager how many invoices and the average amount of an invoice for all the vendors in a particular city for all the cities where there are vendors with at least one invoce The query tells the manager how many invoices and the total amount of all the invoices for all the vendors in a particular state, for all the states where there are vendors with at least one invoice

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

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago