How about:

select b.*
from b
left outer join a on b.id = a.id
where a.id is null

Carl

On 6/21/2011 10:37 AM, Jenny Gavin-Wear wrote:
> Two tables each containing a shared primary key ID.
>
> I am trying to create a query that lists records from table B that are not
> in table A.
>
> Many thanks,
>
> Jenny
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345497
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to