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

Answer Posted / pawan378

in addition to the above correct answers ..

Having Clause allows to add conditions using functions

Ex: COUNT(*) > 2

at on the same phrase of the query. this will be basically
to avoid sub queries.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does null mean?

600


What is difference between rownum and rowid?

507


How to create database with physical files specified in ms sql server?

542


Can we insert data into a view?

566


How does index makes search faster?

600






Do you know what is user defined datatypes and when you should go for them?

501


What is stored in the mssqlsystemresource database? : sql server database administration

591


How to modify an existing stored procedure in ms sql server?

533


How would we use distinct statement? What is its use?

603


Is it possible to have clustered index on separate drive from original table location?

513


Explain for xml explicit mode?

564


How to add more data to the testing table in ms sql server?

555


What are the types of database schema? : sql server analysis services, ssas

601


What is view in sql?

562


What are the underflow and overflow behaviors on float literals?

574