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 is the difference between a local and a global temporary table?

623


what does the automatic recovery do? : Sql server administration

538


What is difference between Datepart() and Datename() in SqlServer?

718


What stored by the msdb? : sql server database administration

558


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

483






How many types of local tables are there in sql server?

508


Can we use where and having clause together?

508


What is DCL?

591


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

553


Does full backup break log chain?

547


explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

507


Can sql servers link to other servers like oracle?

468


What are the benefits and tasks of object explorer? : sql server management studio

608


What is a trigger in sql server?

533


In which files does sql server actually store data?

471