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.

exec_5C62.sql 269B

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