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
What is a trace frag?
Can you explain different types of joins?
Can you edit the .rdl code associated with a linked report?
Explain what are commit and rollback in sql?
What do you mean by 'normalization'?
How many columns can exist together per table?
What are the advantages of user-defined functions over stored procedures in sql server?
What is cross join in sql server joins?
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?
Can we use custom code in ssrs?
How to define and use table alias names in ms sql server?
How to join two tables in a single query in ms sql server?
How to use "if ... Else if ... Else ..." Statement structures in ms sql server?
What is ddl and dml commands?