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 the picture clause of null indicator variable?

680


What is a buffer in memory?

587


What is bind plan?

600


What do you mean by commit and rollback?

586


What is page size in db2?

559






B37 abend during spufi?

970


Is ibm db2 free?

566


What is host variable?

585


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

627


What is access path in db2?

552


What is concurrency?

696


Name the lockable units in DB2?

655


What is database alias db2?

589


What do you mean by cursor?

576


What does db2 stand for?

593