Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa SQL What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


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


Advertisement
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,



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com