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

What is a mixed extent?

585


How to configure and test odbc dsn settings?

567


What is best institute to Learn DotNET And SQL in chennai?

1686


How to apply cascading referential integrity in place of triggers?

564


What happens if we shrink log file in sql server?

511






What is sql or structured query language?

673


How do I create a partition table in sql server?

484


What is dknf in normalization form?

553


How to use values from other tables in update statements in ms sql server?

551


How do I find the port number for sql server?

500


What is sql server profiler trace data file?

579


What is de-normalization and what are some of the examples of it?

527


What is t-sql script to take database offline – take database online.

598


How to Update from select query in sql server?

537


What is report snapshot in ssrs?

160