I tried below and got an error <cfquery name="getImg" dbtype="query"> select * from getList where name NOT like 'tn_%' order by name </cfquery>
<cfquery name="getSQL" datasource="#DSN#"> select j_image from Judges </cfquery> <cfquery name="getList2" dbtype="query"> select * from getImg where name NOT IN (select j_image from getSQL) </cfquery> The error is Error Executing Database Query. *Query Of Queries syntax error.* Encountered "name NOT IN ( select" at line 0, column 0. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition, The error occurred in *C:\Inetpub\wwwroot\test3.cfm: line 31* 29 : select j_image from Judges 30 : </cfquery>*31 : <cfquery name="getList2" dbtype="query">* 32 : select * from getImg 33 : where name NOT IN -- Regards, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:220960 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

