top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between WHERE clause and HAVING clause?

+2 votes
451 views
What is the difference between WHERE clause and HAVING clause?
posted Jan 19, 2014 by Vishvachi Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

WHERE and HAVING both filters out records based on one or more conditions. The difference is, WHERE clause can only be applied on a static non-aggregated column whereas we will need to use HAVING for aggregated columns.

answer Jan 19, 2014 by Atul Mishra
...