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_5C26.sql 184B

123456
  1. USE ap;
  2. SELECT vendor_id,ROUND(AVG(invoice_total), 2) AS average_invoice_amount
  3. FROM invoices
  4. GROUP BY vendor_id
  5. HAVING AVG(invoice_total) > 2000
  6. ORDER BY average_invoice_amount DESC;