what is Difference between Having and Where clause?
Answers were Sorted based on User's Feedback
Answer / chandrakala
Having clause is used for filtering grouped data and where
clause is used for filtering rows.
| Is This Answer Correct ? | 33 Yes | 0 No |
Answer / ganesh
where clause check a condition & having clause is use in
group by clause
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / nrapendra
where clause filter the data before gruop by clause and
having clause clause filter the data after group by clause
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / joe
When we used group by that time only we can use having. But without group by we can use having.
Only grouped column have used in having condition
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / tanmoy
We can use arithmetic operator in having clause but it is
not possible for where clause..
| Is This Answer Correct ? | 0 Yes | 5 No |
How does postgresql compare to mysql?
How many times can we commit in a loop?
Explain the uses of control file.
How to find only %th Highest Sal
is it possible to pass an object or table to a procedure as an argument?
Do ddl statements need commit?
What is the difference between left join and right join?
how to dump a table to a file with 'mysqldump'? : Sql dba
what are the types of subquery? : Sql dba
using subquery how can i calculate working days in a month?
How to change the order of columns in Oracle SQL Plus ?
What is optimistic concurrency control? : Transact sql
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)