Or, just had a thought, make the the sub query dynamic
<cfquery name="OOrder" datasource="database">
SELECT Zip
FROM UPS
</cfquery>
<cfquery name="Minneapolis" dbtype="Query">
SELECT *
FROM OOrder
Where zip IN (#ValueList(OOrder.Zip)#)
</cfquery>
You might want to allow for no records though.
Ade
-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 09 November 2005 22:28
To: CF-Talk
Subject: RE: Query of Queries Subquery
Sad but true... You'll have to run a third QoQ to filter it.
...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 09, 2005 5:23 PM
To: CF-Talk
Subject: RE: Query of Queries Subquery
You can't do sub queries in Q of Q.
Ade
-----Original Message-----
From: Lee [mailto:[EMAIL PROTECTED]
Sent: 09 November 2005 22:15
To: CF-Talk
Subject: Query of Queries Subquery
I'm having trouble doing a subquery using a query of
queries. Is this even possible or am I doing something
wrong. I have the simplified code below. Thanks.
<cfquery name="OOrder" datasource="database" dbtype="ODBC"
>
SELECT Zip
FROM UPS
</cfquery>
<cfquery name="Minneapolis" dbtype="Query" >
SELECT *
FROM OOrder
Where zip IN (Select Zip from cstSpecialZip)
</cfquery>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223747
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54