select * from getList
where [someuniqueIDingetlist] NOT IN (
    select [someuniqueIDinJudges]  from Judges
)
Where getList,id = [yourid]

I am not sure on your column structs but you sure as hell don't need 3
queries, it can all be done in 1.





-----Original Message-----
From: Asim Manzur [mailto:[EMAIL PROTECTED] 
Sent: 13 October 2005 03:22
To: CF-Talk
Subject: SQL issue: filter query

Hi,
 I have two queries.

<cfquery name="getImg" dbtype="query">
select * from getList
where name NOT like 'tn_%'
order by name
</cfquery>

<cfquery name="getSQL" datasource="#DSN#">
select * from Judges
</cfquery>

 in GetImg recordset I have some data in there, in GetSQL recordset I am
pulling another series of records.
 I need to create the third query which contains all the records but not the
one which are pulled from Judges table.
 in other words,
select * from getList, GetSql where getlist.name <http://getlist.name> <>
getSql.image


--

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:220879
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