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.

exercise-4.sql 277B

12345678
  1. SELECT invoice_number,
  2. invoice_total,
  3. payment_total + credit_total AS payment_credit_total,
  4. invoice_total - payment_total - credit_total AS balance_due
  5. FROM invoices
  6. WHERE invoice_total - payment_total - credit_total > 50
  7. ORDER BY balance_due DESC
  8. LIMIT 5;