What is the difference between Where and Having Clause

Answer Posted / md amanullah

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 ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of dclgen in db2?

581


What is blu acceleration in db2?

596


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

579


What is the clustering index in the db2 database?

574


How to connect to db2 database from windows command line?

553






How do I copy a table in db2?

569


How do I add a column in db2?

581


Explain db2.

605


What is package in cobol db2?

693


What is explain in db2?

576


What is a db2 package?

593


What are the 2 sqlcodes that are returned?

631


what are bind concepts in db2 cobol?

641


What is the usage of open cursor command?

592


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

692