Can Having clause be used without Group by clause?

Answer Posted / sumathy

HAVING Clause
Specifies a search condition for a group or an aggregate.
HAVING is usually used with the GROUP BY clause. When GROUP
BY is not used, HAVING behaves like a WHERE clause.

Reference:
http://msdn.microsoft.com/en-us/library/aa259187
(SQL.80).aspx

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does clustered and non clustered index work?

515


What is database isolation in sql server? : sql server database administration

564


How to send a ssrs report from ssis?

125


Can a rule be bound to any column of any data type?

566


What is the purpose of the tempdb database?

573






How to create function without parameter in sql server?

559


What is the report builder?

106


Do you know spatial data types - geometry and geography in sql server 2008?

576


What is an sql server agent?

547


What are user defined functions in ms sql server?

510


What is a dbms wizard?

617


Do you know the cursor optimization tips?

582


What is a mutating table error and how can you get around it?

536


Distinguish between nested subquery and correlated subquery?

547


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2209