Can Having clause be used without Group by clause?

Answer Posted / phani

we can use, but select columns and having columns should
use with aggregare functions

ex:
select max(empid), min(marks)
from employee
having max(empid_id)>100

Is This Answer Correct ?    72 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

751


Explain optimistic and pessimistic concurrency?

722


Explain the concept of view and Types of views in SQL server?

770


Name few of the dcl commands in sql?

714


how can u get last observation in an unknown dataset ?

2179






How to verify a user name with sqlcmd tool?

788


What is coalesce in sql server?

726


plss anybody specify tha constrian management system in dbms

1800


Explain temporary table vs table variable by using cursor alternative?

717


What is the purpose of object explorer and its features? : sql server management studio

808


What are various limitations of the views?

789


What is the architecture of ms sql reporting service?

702


What is a database in ms sql server?

735


How can you insert values in multiple rows using one Insert statement?

800


Explain ranking functions?

778