What is the difference between having and where clause?

Answer Posted / thirumal reddy

where clause used to impose conditions in any dml operation
ex:
selct * from emp where empid=10
having clause used to impose conditions on group data
ex:

select sum(sal),avg(sal),count(*) from emp
having avg(sal)>2000

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain foreign key in sql server?

751


Do you know what is a linked server in sql server?

714


What does it mean if @@cursor_row returns a negative number?

719


Does any body please help me what question's have asked for SSRS in the interview?

1873


What is difference between view and materialized view?

701






How to get @@error and @@rowcount at the same time?

775


Can two tables share the same primary key?

682


Can you index views?

676


How to delete an existing database user?

737


How many types of keys are there?

740


What is the server name in sql server?

714


What are the different type of replication in sql server?

739


Is t sql the same as sql server?

731


How column data types are determined in a view?

683


How to configure odbc dsn with different port numbers?

756