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 |
Where are sql server usernames and passwords stored in the sql server?
Do you know what is a trace frag? Where do we use it?
What is the sql case statement used for?
What is the difference between insensitive and scroll cursor?
How will you make an attribute not process? : sql server analysis services, ssas
What is self join in sql server joins?
Whether the updations made to the views reflect the original records in the table
If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?
Find top Nth employee from each department in terms of salary?
What is BCNF? How is it better than 2NF & 3NF?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?
What is the use of sign function?