Ankur Jain
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
By Ankur Jain in SQL Server on Aug 18 2014
  • Mukesh Kumar
    Sep, 2017 3

    Having executed after query while where executed before query

    • 0
  • Sreekanth Reddy
    Jul, 2015 11

    Where--> To filter the records based on condition. Having-->same as where but here the condition is based on aggregate functions.

    • 0
  • Ankur Jain
    Aug, 2014 18

    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 whereas WHERE Clause is applied to each row before they are part of the GROUP BY function in a query.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS