Which of the following is an aggregate function in MySQL?

2026

Which of the following is an aggregate function in MySQL?

  1. A.

    SUM()

  2. B.

    MOD()

  3. C.

    MID()

  4. D.

    POWER()

Attempted by 683 students.

Show answer & explanation

Correct answer: A

In MySQL, aggregate functions perform a calculation on a set of values and return a single value. SUM() is the correct answer as it calculates the total sum of numeric values in a column. Functions like MOD(), MID(), and POWER() are mathematical or string functions, not aggregate functions.

Explore the full course: Up Lt Grade Assistant Teacher 2025