what is the difference between group and having
give an example with query and sample output

Answer Posted / pawan378

in addition to the above correct answers ..

Having Clause allows to add conditions using functions

Ex: COUNT(*) > 2

at on the same phrase of the query. this will be basically
to avoid sub queries.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sparse columns?

577


How to connect Azure federated root database and apply federation in entity framework?

87


What is the default schema of your login session in ms sql server?

580


What happens if the update subquery returns multiple rows in ms sql server?

578


What is the difference between online clustering and Offline clustering?

1904






How to specify the collation for a character data type in ms sql server?

541


when you create a database how is it stored? : Sql server database administration

483


Explain what is public role in sql server?

568


What is a natural primary key?

514


Explain try...catch with sql server?

587


what is the system function to get current user's user id? : Sql server database administration

541


Is there any difference between the primary key and unique key?

560


What is the temp table?

535


Tell about MOM Tool(Microsoft Operator Manager)?

1403


What are the types of dml?

543