3
Reply

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

Ankur Jain

Ankur Jain

Aug 18, 2014
1.6k
0

    Having executed after query while where executed before query

    Mukesh Kumar
    September 03, 2017
    0

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

    Srikanth Reddy
    July 11, 2015
    0

    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.

    Ankur Jain
    August 18, 2014
    0