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

Why are you getting errors when creating a new odbc dsn?

803


Is sql server difficult to learn?

687


What is difference between group by and having?

720


Do you know exporting and importing utility?

696


What is difference between drop truncate and delete?

733






What is the purpose of sql profiler in sql server? : sql server database administration

811


Do you know concepts and capabilities of sql server?

741


What is an example of a primary key?

694


Differentiate between mongodb vs. Sql server?

786


What are trace files?

706


What is the difference between a view and a stored procedure?

759


how we use window authentication connection with sql server.?

811


What are distinctive joins find as a part of sql?

702


Is candidate a key?

712


Explain the properties of sub-query in sql server?

726