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.

demo-queries-from slides-1.sql 175B

1234
  1. SELECT COUNT(*) AS number_of_invoices,
  2. SUM(invoice_total - payment_total - credit_total) AS total_due
  3. FROM invoices
  4. WHERE invoice_total - payment_total - credit_total > 0;