1. What is returned by AVG(rating) on a table of 5 reviews with ratings: 5, 4, NULL, 3, NULL?
- 2.4 (total divided by 5)
- 4 (total divided by 3)
- NULL
- An error
Hint: AVG ignores NULLs. The sum is 12 (5+4+3) and the count is 3. 12 / 3 = 4.
Quiz for lesson: Aggregates and NULL values
This interactive assessment is designed to test your understanding of Aggregates and NULL values. Whether you are a beginner looking to grasp the basics or an experienced professional aiming to refine your skills, quizzes are an excellent way to validate your knowledge and identify areas for improvement.