What is the difference between Where and Having Clause

Answer Posted / njadav

Where Clause:
1)WHERE clause can be used without GROUP BY clause.
2)WHERE clause select rows before grouping.
3)WHERE clause can not contain aggregate functions.
4)WHERE clause can operate individual row.
5)It is more fast.

Having Clause:
1)HAVING clause can not be used without GROUP BY clause.
2)HAVING clause select rows after grouping.
3)HAVING clause can contain aggregate functions.
4)HAVING clause can operate group of row.
5)It is much slow.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a corelated subquerry?

834


What is db2 stogroup?

891


Explain how can you do the explain of a dynamic sql statement?

852


How can you do the explain of a dynamic sql statement?

824


Are views updateable?

834


Define declaration generator (dclgen).

878


When the like statement is used?

882


What does reorg do in db2?

776


What are the prerogatives?

801


What is commit in db2?

806


What is the use of reorg in db2?

820


What is the advantage in De-normalizing tables in DB2?

936


Mention the different locking levels that are available in db2.

858


What is the physical storage length of time data type?

883


Define db2.

858