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

Answer Posted / dinesh sharma

Group by is used To Group Result According To Group Name
Having Is Always Is Used With Group by Clause.
Having Contain Aggregate Function or Simple Sub Query .
as Show In Above Example

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the five characteristics of good data?

596


How to declare and use cursor variables?

679


Define tool Manage Statistics in SQL Server 2000 query ?

609


What is a trace frag? Where do we use it?

745


Explain about thread and memory management process of SQL?

618






What are the new data types are introduced in sql 2000?

588


What is data source object?

646


How to create view in stored procedure sql server?

599


What is the use of tempdb? What values does it hold?

647


what is blocking? : Sql server database administration

595


What are audit control procedures?

668


How can change procedure in sql server?

619


What is a select query statement in ms sql server?

671


What is replication and database mirroring?

696


How can I track the changes or identify the latest insert-update-delete from a table?

626