Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having vs. Where clause

Status
Not open for further replies.

CrystalVis

Technical User
Joined
Jun 26, 2002
Messages
200
Location
US
will these statements give me the same result if I use them as a criterion to filter data:

Having sum(pmt.amount) > 1000

Where sum(pmt.amount) > 1000

I understand if I use having the processing time will be longer. Any explanation is greatly appreciated.
TIA
 
Having is used in conjunction with the Group By clause.

Copied this from Help:

WHERE is similar to HAVING. WHERE determines which records are selected. Similarly, once records are grouped with GROUP BY, HAVING determines which records are displayed.

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top