Answered step by step
Verified Expert Solution
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
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 invoiceStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started