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 access path in db2?

564


How can you quickly find out the # of rows updated after an update statement?

634


How to find the maximum value in a column in the db2 database?

611


How do you eliminate duplicate values in db2?

688


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

748






What is a db2 package?

599


Give a brief description of db2 isolation levels?

601


What is buffer pool in the db2 database?

621


Is the primary key a clustered index?

611


What's The Error Code For Unique Index Voilation?

653


Is db2 a programming language?

606


Where do you specify them?

681


What is the meaning concurrency in the db2 database?

634


What is the role of the data page in the db2 database?

589


Define predicate?

645