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_5C53.sql 256B

123456789101112
  1. USE AP;
  2. SELECT
  3. invoice_date,
  4. COUNT(*) AS invoice_qty,
  5. SUM(invoice_total) AS invoice_sum
  6. FROM invoices
  7. GROUP BY invoice_date
  8. HAVING invoice_date BETWEEN '2018-05-01' AND '2018-05-31'
  9. AND COUNT(*) > 1
  10. AND SUM(invoice_total) > 100
  11. ORDER BY invoice_date DESC;