try this, but be prepared for a slow query if the rows aren't indexed or if
the tables are big:

SELECT letters
FROM table1
WHERE pKey NOT IN (SELECT letters FROM table2)

                                                    
Bryan Love ACP
[EMAIL PROTECTED]
                                                    


-----Original Message-----
From: Vano, Carl G, SITS [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 1:20 PM
To: CF-Talk
Subject: SQL: select records from table 1, that are not in table 2 ?


How would I select only the records from table 1, that are not in table 2.

1       2
A       A
B       B
C       C       
D       
E       
F

expected query result:

D
E
F       


Thanks! 
Carl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to