Which aggregate function is used to calculate the average value of a numeric column?

Options

  • A. SUM()
  • B. AVG()
  • C. MAX()
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. AVG()

Detailed Explanation

  • AVG(): Calculates the arithmetic average of non-NULL numeric values.
  • NULL values are ignored during the calculation.
  • Example: SELECT AVG(salary) FROM employees;