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.

exercise-05.sql 210B

12345
  1. SELECT SUM(invoice_max) AS sum_of_maximums
  2. FROM (SELECT vendor_id, MAX(invoice_total) AS invoice_max
  3. FROM invoices
  4. WHERE invoice_total - credit_total - payment_total > 0
  5. GROUP BY vendor_id) t