[USERNAME] | [GROUP] |
User1 | New Member |
User2 | New Member |
User1 | All Members |
User1 | Gold Member |
How would I write a query so that I could select * from the above table where a user has more than 1 group (user1) and if one of the groups = 'All members' then ignore that row and just return the all the other rows for the user that has > 1 group.
Thanks in advance. I can write the query for counting if a user has more than 1 group, but I stuck on the rest.
Thanks again