Advertisements
Advertisements
Question
Consider the following SQL.
SELECT ______ FROM Employee WHERE Dept= 'Printing';
Which of the following should be used to find the mean of the salary?
Options
Mean(Salary)
Avg(Salary)
Sum(Salary)
Count(Salary)
MCQ
Fill in the Blanks
Solution
Avg(Salary)
Explanation:
The AVG() function returns the average value of a numeric column. AVG() Syntax. SELECT AVG(column_name) FROM table_name. WHERE condition;.
shaalaa.com
SQL for Data Query
Is there an error in this question or solution?