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 do I partition a table in sql?
What is difference between pl and sql?
how to include comments in sql statements? : Sql dba
what are the advantages of primary key over unique+notnull
7 Answers Consultancy, LGS, Oracle,
How do I trace sql profiler?
What is parallel hint?
what is self join and how it works??
Are pl sql variables case sensitive?
What is clustered, non-clustured and unique index. How many indexes can be created on a table ?
What is the use of nvl function?
How do I create a sql script?
What are hotfixes and patches?
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)