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_5C12.sql 415B

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