what is the difference between group and having
give an example with query and sample output

Answer Posted / veeresh kethari

Where: 'WHERE' will filter the data before grouping

Having:'HAVING' will filter,after the grouping the data.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I save my report as html, excel or word? : sql server management studio

548


What is difference between drop truncate and delete?

550


What do we have to check in database testing?

585


What are the basic features of a trigger in ms sql server?

567


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

673






What are the advantages of using cte?

555


How to populate a table in sql server?

504


What is role playing dimension with two examples? : sql server analysis services, ssas

588


Which is better statement or preparedstatement?

524


What is ddl and dml commands?

509


What are 3 ways to get a count of the number of records in a table?

609


how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

1100


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

591


What is the process of indexing?

514


What is difference between stored procedure and user defined function?

547