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 can you know that statistics should be updated?
Why stored procedure is faster than query?
What is coalesce in sql?
What is thread join () in threading?
what are the methods using performance tunning in sql and pl/sql
What is a sql statement?
write a query to delete similar records in same table
How do you update a value in sql?
How do you retrieve the last N records from a table?
What are the types of variable use in pl sql?
If the base table structure is changed what will happen to join index????
Which data type is a composite type?
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)