Which aggregate function should you use to find the total revenue per product category?

SQL Fundamentals Medium

SQL Fundamentals — Medium

Which aggregate function should you use to find the total revenue per product category?

Key points

  • SUM(revenue) calculates total revenue
  • GROUP BY category groups revenue by product category
  • COUNT(revenue) counts number of revenue entries
  • AVG(revenue) calculates average revenue
  • MAX(revenue) finds the highest revenue value

Ready to go further?

Related questions