Click to See Complete Forum and Search --> : Query members that is not included in a group.


winsonlee
04-28-2006, 04:44 AM
Name clubID
Sam 1
Mathew 1
Jason 1
Clues 1
Sam 2
Jason 2

How can i query in such that members that is not in clubID 2 is listed ??
eg :

Name clubID
Mathew 1
Clues 1

eralper
04-28-2006, 06:30 AM
Hi,
you can use the below query


select *
from ClubMembers
where
name not in (
select name from ClubMembers where clubID = 2
)

Eralper
http://www.kodyaz.com