I could be way off base here, as I missed the earlier emails, but I think you want to use a sub-select. Something like this:
select * from bigTable where bigTable.lastname NOT IN (select distinct lastname from littleTable) [email protected] on Thursday, January 18, 2007 at 7:56 AM -0800 wrote: >Michael, > >Many thanks. Tried it and it didn't work. The Primary key is just a >field called Id. However, there are a different amount of records in >each table. One has a little over 700, the other has somewhere around >1400. > >In a nutshell, this is what I am doing: I have two tables with last >name, first name, and Id. Only one table has a RegId (basically, just a >country identifier, because the other table doesn't need it right now). > >I just need to compare the records, based on last name, and spit out the >ones that don't match. The AND in the WHERE clause is just being used >for the RegId so that it just searches the names based on the country >(for example, U.S.). You would think it would be pretty easy and >straightforward. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2440 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
