Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

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

Ads

 
 

Share on Google+Share on Google+

hemant kumar
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
1 Answer(s)      6 years and 9 months ago
Posted in : SQL

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

Ads
View Answers

November 18, 2010 at 4:20 PM


Hi,

Both HAVING and WHERE clause used for specifying the search condition in SQL queries.

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 can be used for specifying the search criteria in SELECT, DELETE, UPDATE statements.

Thanks,


Ads









Related Tutorials/Questions & Answers:
Advertisements