Hello
I am sorry to ask for a probably obvious SQL problem...
On my site I use several joomla users groups :
- all registered users are in group '2'
- all paid users are in group '3' AND in group '2' : the CBSubs plans move them to groupe '3' all time plan is active
- some advanced members are in group '2', '3' and higher groups
So paid users have at least two rows in the #__user_usergroup_map table (group '2' and group '3').
To get paid members I can use some SQL SELECT Query using
Code:
WHERE #__user_usergroup_map.group_id = '3'
.
I would like to select users who are ONLY in group '2' (and NOT in '3' ou higher). If I use
Code:
WHERE #__user_usergroup_map.group_id != '3'
I get all users because all users are also in group2.
I am sure it is a very common SQL question but I cannot write it correctly. If you could help it would be fantastic !
Best regards
Antoine
Antoine