Advertisement
Advanced SQL & Database Querying, SQL Aggregations & Grouping

How do you calculate averages in SQL?

Short answer

Use AVG function.

Save SQL & Database Querying mock interview
Advertisement
AModel answer
Use AVG function.
AVG(order_value).
Real-world example
Using GROUP BY, an analyst calculated monthly revenue by region in seconds.
Likely follow-ups
  • What are aggregate functions
  • What is GROUP BY
  • What is HAVING
Related topics