Can Having clause be used without Group by clause?

Answer Posted / shailesh yadav

Yes HAVING caluse can be use without GROUP BY. the SQL HAVING clause is often used with the GROUP BY clause. If the GROUP BY clause is omitted, the MySQL HAVING clause behaves like the WHERE clause. Notice that the MySQL HAVING clause applies the condition to each group of rows, while the WHERE clause applies the condition to each individual row.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if strings are casted into wrong code pages in ms sql server?

579


How to set database to be single_user in ms sql server?

573


What are the built in functions in sql server?

499


What are constraints in microsoft sql server?

572


What are ddl (data definition language) statements for tables in ms sql server?

553






How to modify an existing user defined function?

612


What's new in sql management studio for sql server? : sql server management studio

592


How to test subquery results with the exists operator?

571


What does select 1 mean?

540


Explain can you implement data mining in ssrs?

106


What is the process of normalization?

570


What structure can you implement for the database to speed up table reads?

727


How do I find the sql server version?

537


How to insert stored procedure result into temporary table?

595


How to drop existing views from a database in ms sql server?

544