What is the difference between a HAVING CLAUSE and a WHERE
CLAUSE?

Answer Posted / menagadev

The HAVING clause sets conditions on the GROUP BY clause
similar to the way WHERE interacts with SELECT. The WHERE
search condition is applied before the grouping operation
occurs; the HAVING search condition is applied after the
grouping operation occurs. The HAVING syntax is exactly
like the WHERE syntax, except HAVING can contain aggregate
functions.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to perform key word search in tables?

609


How to find Duplicate Records In table?

666


How do I port a number to sql server?

597


Do you know what is fill factor and pad index?

655


Do you know what is similarity and difference between truncate and delete in sql?

667






How much is a sql server license?

602


What is DCL?

676


What is service broker?

684


To which devices can a backup be created and where should these devices be located? : sql server management studio

643


What is sqlcmd?

629


Explain external key management in sql server 2008

598


Define compound operators?

603


What is nested transaction?

634


What is SubQuery in SQL Server 2008

639


What are the advantages to use stored procedures?

661