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.

demo-queries-from slides-07.sql 206B

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