SQL - Aggregate FunctionsWhat does the SQL AVG() function do?ACalculates the average value of a numeric columnBCounts the number of rows in a tableCFinds the maximum value in a columnDReturns the sum of all values in a columnCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand the purpose of AVG()The AVG() function is designed to calculate the average (mean) of numeric values in a column.Step 2: Compare with other aggregate functionsUnlike COUNT(), MAX(), or SUM(), AVG() specifically returns the average value.Final Answer:Calculates the average value of a numeric column -> Option AQuick Check:AVG() = average calculation [OK]Quick Trick: AVG() always returns the mean of numbers, not counts or sums [OK]Common Mistakes:MISTAKESConfusing AVG() with COUNT()Thinking AVG() sums values without dividingAssuming AVG() works on non-numeric columns
Master "Aggregate Functions" in SQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More SQL Quizzes Advanced Joins - Natural join and its risks - Quiz 10hard Advanced Joins - FULL OUTER JOIN behavior - Quiz 8hard Advanced Joins - Join order and performance impact - Quiz 10hard Aggregate Functions - COUNT(*) vs COUNT(column) difference - Quiz 6medium Aggregate Functions - MIN and MAX functions - Quiz 2easy INNER JOIN - Why joins are needed - Quiz 1easy LEFT and RIGHT JOIN - LEFT JOIN preserving all left rows - Quiz 2easy Table Constraints - FOREIGN KEY constraint - Quiz 11easy Table Constraints - UNIQUE constraint - Quiz 3easy Views - Why views are needed - Quiz 14medium