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 |
What is rowid in sql?
Should I use mbr or gpt?
What is tuple in sql?
Describe different types of general function used in sql?
How do I make my sql query run faster?
how to find the First and Last Observation from the table: Ex: OBS Name Sal Ans like: OBS Name Sal 105 E 5000--> 105 E 5000 102 B 2000 104 D 4000 103 C 3000 101 A 1000--> 104 D 4000
Why indexing is needed?
What is information schema in sql?
what are the difference between clustered and a non-clustered index? : Sql dba
In what condition is it good to disable a trigger?
What are inner and outer joins examples of both?
What is the use of & in pl 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)