Is cstSpecialZip another query record set? How about...

<cfquery name="Minneapolis"  dbtype="Query" >
  SELECT    *
  FROM      OOrder
  Where     zip IN (<cfqueryparam
value="0#valueList(cstSpecialZip.zip)#" cfsqltype="CF_SQL_INTEGER"
list="Yes">)
</cfquery>

In case you're wondering, the "0" will catch empty record set cases (I'm
assuming zip is an integer field). 

-----Original Message-----
From: Lee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 10 November 2005 11:31 a.m.
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:223748
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to