A

Admin • 833K Points
Coach

Q. What does this query do?

Code:
SELECT AVG(salary) FROM employees;
  • (A) Calculates total salary
  • (B) Calculates average salary
  • (C) Returns highest salary
  • (D) Counts number of salaries
  • Correct Answer - Option(B)
  • Views: 29
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin

`AVG()` returns the average of the values in the specified column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.