Say we have these tables;
table user:
- id
- username
- email
user2group table:
- userid
- groupid
table group:
- id
- groupname
How to make a single request that returns all users and groups to which they belong (as an array in the result set or something like that).
Heinrik
source
share