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

Is it true, that there is no difference between a rule and a check constraint?

692


How to create new table with "create table" statements?

728


What is rs.exe utility?

138


How do I find information about the install locations for the various instances running on a computer?

756


Explain multiserver query

714






Why SQL Agent is used?

799


Tell me what is difference between view and materialized view?

695


List all the types of user-defined functions?

687


What is RAID? What are the different types of RAID configurations?

803


What are the new data types are introduced in sql 2000?

671


What is bcnf normalization form?

847


What is sql server programming?

761


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

712


How to sort the query output with order by clauses in ms sql server?

815


What is compound operators?

709