i have two tables currency
- the table contains client infomation
table - member
id name
1 john
2 lee
3 george
2 another table contains the information which group the client belongs
table - group
group_id id
2 1 (john)
2 2 (lee)
i want to find out which id doesn't belong to any group
so i try
SELECT name.id FROM group,member WHERE group.id != member.id
finally
the result
id
3
3
so what's the problem of my query, thanks
select