difference between where and having clause
Listed below are some differences to help distinguish between the two: 1  The WHERE clause specifies the criteria which individual records must meet to be selcted by a query. It can be used without the GROUP BY clause. The HAVING clause cannot be used without the GROUP BY clause.  The WHERE clause selects rows before grouping.