Which is not a group function?

  1. Count

  2. Avg

  3. Total

  4. Max


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of group functions in SQL. Group functions are used to perform calculations on groups of rows rather than individual rows in a table.

Let's go through each option to understand why it is correct or incorrect:

Option A) Count - This option is a group function. It is used to count the number of rows that match a specific condition.

Option B) Avg - This option is a group function. It is used to calculate the average value of a column in a group of rows.

Option C) Total - This option is not a standard group function in SQL. The correct group function for calculating the total sum of a column is called "Sum". Therefore, option C is the correct answer to the question.

Option D) Max - This option is a group function. It is used to find the maximum value of a column in a group of rows.

The correct answer is C) Total. This option is not a group function in SQL, whereas the other options (A, B, and D) are valid group functions.

Find more quizzes: