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_5C9.sql 281B

1234567
  1. USE AP;
  2. SELECT invoice_number, vendor_name, invoice_due_date,
  3. invoice_total - payment_total - credit_total AS balance_due
  4. FROM vendors v JOIN invoices i
  5. ON v.vendor_id = i.vendor_id
  6. WHERE invoice_total - payment_total - credit_total > 0
  7. ORDER BY invoice_due_date DESC;