On 26-Feb-2003 John Hoskins wrote:
>
> Probably a simple query but, I need to find select a field with data that
> exists in one table but does not exist in a field in another table.
>
> example:
>
> table1.name table2.name
> ----------- ------------
> bob john
> susan jane
> tom tom
> john bob
> jane john
> jane
> tom
>
>
> result should be = susan
>
> any help is appreciated
>
look for 'LEFT JOIN' in the manual.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table query)
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php