Created
November 21, 2019 02:37
-
-
Save grahamgilbert/0ddb239a004fb2c2bbcda4a60d2b4d43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select username,uuid,uid,gid,description,directory, case WHEN uuid in (SELECT users.uuid FROM user_groups INNER JOIN users ON user_groups.uid = users.uid WHERE user_groups.gid = 80) THEN "admin" ELSE "standard" END AS user_type from users; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment