What is the difference between Where and Having Clause

Answer Posted / narendra

Both are used to filter the rows but
where is used to filter the rows on single row functions and
having is used to filter the rows on group functions or aggregate functions.

one more thing i would like to mention is
having can be used without group by

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

957


How do I delete a column in db2?

857


What is scrollable cursor in db2?

795


Mention the various locks that are available in db2.

781


What is the latest version of ibm db2?

961


What is the default page size of buffer pools?

861


What is query_cache_limit?

745


How to create backup table in db2?

847


What are db2 objects?

824


Which command is used to remove all rows from a table?

769


Is the primary key a clustered index?

830


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

792


What is db2? Explain.

779


How to rename a table in DB2 ?

813


What is db2 connect?

790