RSS‎ > ‎

SQL :: What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

posted Aug 22, 2012, 11:19 PM by Ashish Jain
Specifies a search condition for a group or an aggregate. HAVING can be used only with the SELECT statement. HAVING is typically used in a GROUP BY clause. When GROUP BY is not used, HAVING behaves like a WHERE clause. Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query.
Comments