I have a small application in which users can log in and do what they do there. The database structure for users has nothing in common. There are three tables:
users group user_group_relationNow, how can I get a list of all groups along with membership status for an array of users?
Let me clarify this with an example.
David is a member of 'users , ' the administrators , "economy"
Eric is a member of the "users" administrator
Richard is a member of the "Administrators"
Lisa is a member of the "administrators , " economy "
Here is the result I would like to get from sql query
GroupName.......................isEveryoneAMember
users ...................... someAre
Administrators.......... yes
Economy .................. someAre
Sales ....................... no
David source
share