Which of the following is not a valid aggregate function?

2023

Which of the following is not a valid aggregate function?

  1. A.

    COUNT

  2. B.

    COMPUTE

  3. C.

    SUM

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 997 students.

Show answer & explanation

Correct answer: B

Aggregate functions are used in SQL to perform calculations on a set of values and return a single value. Common aggregate functions include COUNT, SUM, AVG, MIN, and MAX. COUNT is used to count the number of rows in a group. SUM is used to calculate the total of a numeric column. These are valid aggregate functions. COMPUTE is not a standard aggregate function in SQL. It is not recognized in standard SQL syntax for aggregation. Therefore, it is not a valid aggregate function.

Explore the full course: Up Lt Grade Assistant Teacher 2025