what is the difference between a having clause


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

HAVING CLAUSE

- HAVING CLAUSE is used only with SELECT statement.

- It is normally used in a GROUP BY clause in a query.

- If GROUP BY isn't used, HAVING works like a WHERE clause.

WHERE Clause

- It is applied to every row before they become a part of GROUP BY function in a query.

 

Request for Solution File

Ask an Expert for Answer!!
Database Management System: what is the difference between a having clause
Reference No:- TGS0354932

Expected delivery within 24 Hours