Re: im puzzled

2001-08-29 Thread Gerald Clark
I suspect he wants: SELECT users.uid FROM users LEFT JOIN picks ON users.uid = picks.user_id WHERE picks.user_id IS NULL Paul DuBois wrote: > At 10:36 AM -0400 8/29/01, Jeremy Morano wrote: > >> Hi , >> >> this is my query >> >> SELECT users.uid FROM users, picks WHERE users.uid = picks.user

Re: im puzzled

2001-08-29 Thread Paul DuBois
At 10:36 AM -0400 8/29/01, Jeremy Morano wrote: >Hi , > >this is my query > >SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; > >this works correctly. The results are what they are supposed to be: >However, when I change the = sign to a <> or !=, The results are completely >inco

Re: im puzzled

2001-08-29 Thread Gerald Clark
And that is correct. You are getting each users.uid that doesn't match each picks.userid. Jeremy Morano wrote: > Hi , > > this is my query > > SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; > > this works correctly. The results are what they are supposed to be: > However,

im puzzled

2001-08-29 Thread Jeremy Morano
Hi , this is my query SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; this works correctly. The results are what they are supposed to be: However, when I change the = sign to a <> or !=, The results are completely incorrect. -- picks.user_i