Bird
0
0

Which aggregate function is used to find the total sum of values in a column when using GROUP BY?

easy📝 Conceptual Q2 of 15
SQL - GROUP BY and HAVING
Which aggregate function is used to find the total sum of values in a column when using GROUP BY?
ASUM()
BCOUNT()
CAVG()
DMAX()
Step-by-Step Solution
Solution:
  1. Step 1: Identify aggregate functions

    SUM() calculates the total sum of numeric values in a column.
  2. Step 2: Differentiate from other aggregates

    COUNT() counts rows, AVG() calculates average, MAX() finds maximum value.
  3. Final Answer:

    SUM() -> Option A
  4. Quick Check:

    Sum function = SUM() [OK]
Quick Trick: SUM() adds values in a group [OK]
Common Mistakes:
MISTAKES
  • Using COUNT() instead of SUM() for totals
  • Confusing AVG() with SUM()
  • Using MAX() to get total sum

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes