Question:

Match List-I with List-II:
List-I (Aggregate function)List-II (Description)
(A) count(marks)(III) Count all non null values of marks column
(B) count()(I) Count all rows
(C) avg(marks)(II) Finding average of non null values of marks
(D) sum(marks)(IV) Finding sum of all marks

Show Hint

Remember: - COUNT() counts all rows. - COUNT(column) ignores NULL values. - AVG() and SUM() both ignore NULL values while performing calculations.
Updated On: Sep 18, 2025
  • (A)-(III), (B)-(I), (C)-(II), (D)-(IV)
  • (A)-(I), (B)-(III), (C)-(II), (D)-(IV)
  • (A)-(II), (B)-(III), (C)-(IV), (D)-(I)
  • (A)-(III), (B)-(IV), (C)-(I), (D)-(II)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Understanding aggregate functions.
- count(marks) → Counts only non-null entries in the column “marks”. Corresponds to (III).
- count() → Counts all rows in the table, including those with NULL values. Corresponds to (I).
- avg(marks) → Calculates the average of all non-null values of “marks”. Corresponds to (II).
- sum(marks) → Returns the total sum of all non-null values of “marks”. Corresponds to (IV).

Step 2: Matching.
Therefore, the correct matching is: (A) → (III), (B) → (I), (C) → (II), (D) → (IV).
Final Answer: \[ \boxed{\text{Option (1)}} \]
Was this answer helpful?
0
0

Questions Asked in CUET exam

View More Questions