Ryan, Some problems (or nuances) are:
The column names are case sensitive - make them all upper case. The "SUM( )" feature does not work in tandem with the WHERE clause - it returns the sum of ALL, and does not apply the where filter. The same may be true of AVG() - but I'm not sure If you are joining 2 tables together you must qualify the query.columname in each select (select query1.column1 AS columnA, query2.column1 AS columnB etc. That's my short list. Mark -----Original Message----- From: Ryan Pieszak [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 8:47 AM To: CF-Talk Subject: query of query problem (again) Hello all, I posted something similar yesterday, but I have an easier situation this time. Has anybody had any trouble with query of query in CF5? I'm not doing anything complicated, but my query of a query seems to pull too many records. Thanks for any insight. Ryan J. Pieszak Applications Engineer Ziphany, LLC. (716) 510-0379 www.ziphany.com ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists