Try 

<Cfquery name="mytest" dbtype="query" maxrows="2">
SELECT ProductName
FROM AllPaid
WHERE ProductID = 5
</CFQUERY>

Ken
 
 

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

W Luke <mailto:[EMAIL PROTECTED]> wrote:

> 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. 

Completely forgot about QoQ - been salivating over that for years, and
only now (having moved to MX) do I have a chance to use it!  

Does it have a problem in calling "TOP 2" records?  For instance:

<Cfquery name="mytest" dbtype="query">
SELECT TOP 2 ProductName
FROM AllPaid
WHERE ProductID = 5
</CFQUERY>

That causes an error with me.  Any ideas?

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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to