I'm banging my head against this. I'm pretty sure it's simple but my MySQL is pretty rusty. What I'd like to do is return usernames, full name email address and group memeberships for users who are both in "jira-login" and in another one of a list of groups. Example:
davebloggs is in jira-login and client1 and his details should be in the results
fredbloggs is in client1 but not in jira-login his details should be excluded
joebloggs is in client2 and jira-login and his details should be returned
billbloggs is in jira-login only and his details should be excluded
Can anyone help?