SQL Fundamentals — Hard
Key points
- AVG in SQL excludes NULL values from the calculation
- It divides the sum by the count of non-NULL rows
- This can lead to inaccurate results if NULL values are not accounted for
- Understanding NULL handling in aggregates is crucial for accurate calculations
Ready to go further?
Related questions
