RE: Help with SELECT, JOIN and WHERE query

2003-01-29 Thread heiko mundle
: Re: Help with SELECT, JOIN and WHERE query From: Stefan Hinz, iConnect \(Berlin\) Date: Wed, 29 Jan 2003 00:02:22 +0100 Victor, good shot! I thought of this one in the first place: SELECT u.user_id FROM user_profile u LEFT JOIN team_member t ON u.user_id = t.user_id WHERE t.team_id <>

Re: Help with SELECT, JOIN and WHERE query

2003-01-28 Thread Stefan Hinz, iConnect \(Berlin\)
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 5:30 PM Subject: RE: Help with SELECT, JOIN and WHERE query SELECT u.user_id FROM user_profile u LEFT JOIN team_member t ON u.user_id = t.user_id WHERE t.team_id <> 2 -Original Message- From: heiko

Re: Help with SELECT, JOIN and WHERE query

2003-01-28 Thread gerald_clark
WHERE team_member.user_id IS NULL William R. Mussatto wrote: Hi, I got a difficult problem with a SELECT query: In my application there are two tables, one for all users (user_profile) one for a user-in-team relation. I want to know, which user is still not in a speciffic team. Users can be

Re: Help with SELECT, JOIN and WHERE query

2003-01-28 Thread William R. Mussatto
> Hi, > > I got a difficult problem with a SELECT query: > > In my application there are two tables, one for all users (user_profile) > one for a user-in-team relation. > > I want to know, which user is still not in a speciffic team. Users can > be in more than one team, but we don't care about tha

RE: Help with SELECT, JOIN and WHERE query

2003-01-28 Thread Victor Pendleton
SELECT u.user_id FROM user_profile u LEFT JOIN team_member t ON u.user_id = t.user_id WHERE t.team_id <> 2 -Original Message- From: heiko mundle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 8:08 AM To: [EMAIL PROTECTED] Subject: Help with SELECT, JOIN and WHERE quer

Help with SELECT, JOIN and WHERE query

2003-01-28 Thread Richard Joyce
If you have mySql 4 use a sub-query select user_id from user_profile where user_id not in (select user_id from team_member where team_id = 2) Hi, I got a difficult problem with a SELECT query: In my application there are two tables, one for all users

Re: Help with SELECT, JOIN and WHERE query

2003-01-28 Thread Dobromir Velev
- From: "heiko mundle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 16:08 Subject: Help with SELECT, JOIN and WHERE query > Hi, > > I got a difficult problem with a SELECT query: > > In my application there are two tables, one f

Help with SELECT, JOIN and WHERE query

2003-01-28 Thread heiko mundle
Hi, I got a difficult problem with a SELECT query: In my application there are two tables, one for all users (user_profile) one for a user-in-team relation. I want to know, which user is still not in a speciffic team. Users can be in more than one team, but we don't care about that. Example: