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-2.sql 256B

123456
  1. SELECT vendor_name, invoice_number, invoice_date,
  2. invoice_total - payment_total - credit_total AS balance_due
  3. FROM vendors v JOIN invoices i
  4. ON v.vendor_id = i.vendor_id
  5. WHERE invoice_total - payment_total - credit_total <> 0
  6. ORDER BY vendor_name