Computer Science

The sum(), if used in a condition, is used with …………… clause.

  1. Group by
  2. With
  3. Where
  4. Having

SQL Joins & Grouping

3 Likes

Answer

Having

Reason — When using the SUM() function in a condition, it is used with the HAVING clause. The HAVING clause is used to apply conditions to groups of rows after the GROUP BY operation has been performed, making it suitable for conditions involving aggregate functions like SUM().

Answered By

2 Likes


Related Questions