You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exer_5C52.sql 240B

12345678
  1. USE AP;
  2. SELECT vendor_name, COUNT(*) AS invoice_qty,
  3. ROUND(AVG(invoice_total), 2) AS invoice_avg
  4. FROM vendors JOIN invoices
  5. ON vendors.vendor_id = invoices.vendor_id WHERE invoice_total > 500
  6. GROUP BY vendor_name
  7. ORDER BY invoice_qty DESC;