what is difference between having and where clause ?
Answers were Sorted based on User's Feedback
Answer / raju
Having clause is applied only to the group by function
where as where clause is applued to each and every row in a
table
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / dhiman
Where clause is used to check for the condition- select rows
& restrict rows and where comes before having clause whereas
Having is clause that is created to utilize all the group
functions (sum,avg,min,max,count) and is used for select or
restrict a particular group.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anil sharma
Having clause ia used only with group by, and where used with any input type
| Is This Answer Correct ? | 0 Yes | 3 No |
What is transaction server consistency?
What is blocking and how would you troubleshoot it?
explain the type of contraints
What is a result set object returned by odbc_exec()?
Which command executes the contents of a specified file?
What is save transaction and save point?
State the difference between union and union all?
How to override dml statements with triggers?
About types of indexes in SQL server ?
What is the difference between online clustering and Offline clustering?
What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks
What are the difference between “where” and “having” clause in sql server?
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)