what is difference between where clause and having clause?

Answer Posted / anto padma sheela

1. Having clause is usually used with Group By clause
although it can be used without it too.

2. 'Having' is just an additional filter to 'Where' clause.

3. 'Where' clause applies to the individual rows
whereas 'Having' clause is used to test some condition on
the group(usually aggregate methods) rather than on
individual rows.

Is This Answer Correct ?    28 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use fetch statement in a loop?

560


How to add a new column to an existing table in oracle?

588


Explain self joins in oracle?

564


What is a nested table?

633


How do I find my oracle client driver version?

531






What is the implicit cursor in oracle?

570


How to export data to a csv file?

629


What happens to the current transaction if the session is killed?

536


Can sub procedure/function be called recursively?

542


How to insert multiple rows with one insert statement in oracle?

574


Why cursor variables are easier to use than cursors?

573


Explain a segment?

621


How to delete multiple rows from a table in oracle?

566


How many types of tables supported by oracle?

580


How to declare a local variable?

596