top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

When do you use WHERE clause and when do you use HAVING clause?

0 votes
365 views
When do you use WHERE clause and when do you use HAVING clause?
posted Jul 29, 2015 by Vidhya Sagar

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

1 Answer

+1 vote
 
Best answer

HAVING clause is used when you want to specify a condition for a group function and it is written after GROUP BY clause. The WHERE clause is used when you want to specify a condition for columns, single row functions except group functions and it is written before GROUP BY clause if it is used.

answer Jul 30, 2015 by Arun Gowda
Similar Questions
0 votes

What are the advantage and disadvantages of using a select for update in a cursor Using the "for update clause" and then using useing "update... for current cursor" is a good way to make sure that no one else is changing the rows you are working with.

...