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_5C43.sql 242B

12345678
  1. USE AP;
  2. SELECT COUNT(DISTINCT vendor_id) AS number_of_vendors,
  3. COUNT(vendor_id) AS number_of_invoices,
  4. ROUND(AVG(invoice_total), 2) AS avg_invoice_amt,
  5. SUM(invoice_total) AS total_invoice_amt
  6. FROM invoices
  7. WHERE invoice_date > '2018-01-01';