Skip to content

Instantly share code, notes, and snippets.

@ultramarshall
Created May 7, 2019 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultramarshall/52535d786317da7fd18609e604bffb74 to your computer and use it in GitHub Desktop.
Save ultramarshall/52535d786317da7fd18609e604bffb74 to your computer and use it in GitHub Desktop.
select b.email, b.username, b.password, a.`tbl_groups_id` as role
from group_user as a
join users as b on a.`tbl_users_id` = b.`id`
join groups as c on a.`tbl_groups_id` = c.`id`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment