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_5C69.sql 378B

1234567891011
  1. USE ap;
  2. SELECT vendor_name, invoice_number, invoice_date,
  3. line_item_amount, account_description
  4. FROM vendors v, invoices i, invoice_line_items li,
  5. general_ledger_accounts gl
  6. WHERE v.vendor_id = i.vendor_id
  7. AND i.invoice_id = li.invoice_id
  8. AND li.account_number = gl.account_number
  9. AND invoice_total - payment_total - credit_total > 0
  10. ORDER BY vendor_name, line_item_amount DESC