SQL - Aggregate FunctionsFind the error in this query: SELECT AVG(salary FROM Employees;AMissing closing parenthesis for AVG()BAVG() cannot be used on salaryCEmployees table does not existDAVG() requires GROUP BY clauseCheck Answer
Step-by-Step SolutionSolution:Step 1: Check parentheses balanceAVG() function requires opening and closing parentheses around the column.Step 2: Identify missing closing parenthesisThe query misses the closing parenthesis after salary.Final Answer:Missing closing parenthesis for AVG() -> Option AQuick Check:Parentheses must be balanced in AVG() [OK]Quick Trick: Check parentheses carefully in functions [OK]Common Mistakes:MISTAKESForgetting closing parenthesisMisplacing parentheses in function calls
Master "Aggregate Functions" in SQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More SQL Quizzes Advanced Joins - FULL OUTER JOIN behavior - Quiz 14medium Aggregate Functions - COUNT(*) vs COUNT(column) difference - Quiz 8hard GROUP BY and HAVING - HAVING clause for filtering groups - Quiz 3easy INNER JOIN - INNER JOIN with multiple conditions - Quiz 7medium INNER JOIN - INNER JOIN with table aliases - Quiz 2easy LEFT and RIGHT JOIN - Finding unmatched rows with LEFT JOIN - Quiz 11easy LEFT and RIGHT JOIN - RIGHT JOIN execution behavior - Quiz 4medium Set Operations - EXCEPT (MINUS) for differences - Quiz 5medium Table Relationships - One-to-one relationship design - Quiz 14medium Views - View as a saved query mental model - Quiz 13medium