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_5.sql 203B

123456
  1. SELECT SUM(max_invoice_total) AS total_max
  2. FROM (SELECT vendor_id, MAX(invoice_total) AS max_invoice_total
  3. FROM invoices
  4. WHERE invoice_total - payment_total - credit_total > 0
  5. GROUP BY vendor_id) t;