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
Is it safe to delete log files?
How to view existing indexes on an given table using sp_help?
How can a user-defined datatype be created?
how to take backup bcp out for a column in table in sql server?
Define Wed Edition in SQL Azure?
How can change procedure in sql server?
Will count(column) include columns with null values in its count?
What happens on checkpoint?
How to delete an existing row with delete statements in ms sql server?
What is exporting and importing utility?
Does view occupy space?
What is cube dimension? : sql server analysis services, ssas
What is oltp (online transaction processing)?
Do you know the cursor optimization tips?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A