> I am not really novice, but not good either. I have a problem if the
> table is empty, my select does not return anything then.
> I have three tables,
> 1. users(nick varchar(),number int serial)
> 2. teams(owner references users)
> 3. challange(who references users)
> I want to get all the users, who has a team, but not yet in the challange
> table:
Perhaps:
select user.nick, users.number from users, teams
where users.number = teams.owner and
not exists (select * from challenge where challenge.who = users.number);
Regards,
Giles