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

SELECT vendor_state, vendor_city, vendor_name, COUNT(*) AS invoice_qty, SUM(invo

ID: 3656443 • Letter: S

Question

SELECT vendor_state, vendor_city, vendor_name, COUNT(*) AS invoice_qty, SUM(invoice_total) AS invoice_average FROM invoices JOIN vendors ON invoices.vendor_id = vendors.vendor_id WHERE vendor_state < 'e' GROUP BY vendor_state, vendor_city, vendor_name HAVING SUM(invoice_total) > 500 ORDER BY vendor_state, vendor_city, vendor_name (Please refer to code example above.) Although this query runs as coded, it contains this logical error: Answer A. The column name for the fifth column in the result set doesn

Explanation / Answer

A. The column name for the fifth column in the result set doesn