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_5C48.sql 201B

12345678
  1. use ap;
  2. SELECT vendor_id, invoice_number, invoice_total
  3. FROM invoices i
  4. WHERE invoice_total > (SELECT AVG(invoice_total)
  5. FROM invoices
  6. WHERE vendor_id = i.vendor_id)
  7. ORDER BY vendor_id, invoice_total;