Hi Will,

If I understand what you're asking you should be able to accomplish that by
using QueryOfQuery functionality which lets u use regular SQL to query an
existing recordset in memory.

http://livedocs.macromedia.com/cfmxdocs/Developing_ColdFusion_MX_Application
s_with_CFML/using_recordsets.jsp

Stace

-----Original Message-----
From: W Luke [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 04, 2002 6:12 PM
To: CF-Talk
Subject: Making use of cached queries

Hi.

I have a cached query, as below, which runs on a number of pages:

<cfquery cachedwithin="#createtimespan(1,0,0,0)#" name="findcats"
datasource="#application.DSN#">
SELECT sub_name,cat_name FROM categories, sub_cats 
WHERE categories.ID = sub_cats.cat_id
ORDER by cat_name
</cfquery>

The data in the query will only be changed monthly, at most.  If I had a
var such as <cfset LeadCat = 100> (which would correspond to
categories.ID), could I grab categories.cat_name from the cached query
without altering it, somehow?

I could probably have worded it better, but I hope it's enough for
someone to understand!

Thanks

Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to