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_3_22-C.SQL 283B

123456789
  1. SELECT
  2. vendor_name,
  3. invoice_number,
  4. invoice_date,
  5. invoice_total - payment_total - credit_total AS balance_due
  6. From vendors JOIN invoices
  7. on vendors.vendors_id = invoice.vendors_id
  8. WHERE invoice_total - payment_total - credit_total <>
  9. ORDER BY vendor_name ASC;