> 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

select t1.column1
from table1 as t1 left outer join table2 as t2 where t1.column1=t2.column1
where t2.column1 is NULL

Not 100% sure if it should be a LEFT or RIGHT on the JOIN - it's getting a
little late here

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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