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

What is the benefit of normalization?

598


Which tools are available to manage SQL Azure databases and servers?

93


How to create a trigger for insert only?

611


What is service broker?

595


How do database indexes work?

547






what types of replication are supported in sql server? : Sql server database administration

477


Explain foreign key in sql server?

589


What are the advantages of having an index on the sql server?

550


Can you name some of the dml commands in sql?

554


What is BCNF? How is it better than 2NF & 3NF?

604


What is the importance of a recovery model?

624


Does sql server use t sql?

540


Can group by be used without aggregate functions?

494


How do I start sql server 2016?

534


Explain trigger and its types?

624