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 kind of lan types do you know? : Sql server database administration

519


Do you know how to store and query spatial data?

609


What is the default port for SQL Server over a firewall?

593


What is update_statistics command?

576


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

570






Explain go command in sql server?

547


How to convert binary strings into integers in ms sql server?

558


What is server-level principal?

100


Explain filtered indexes benefits?

594


What do you mean by recursive stored procedure?

513


Explain what is public role in sql server?

580


Tell me what is log shipping?

571


Can you please explain the difference between function and stored procedure?

545


What is tcl in sql server?

667


What command would you use to add a column to a table in sql server?

751