Created
November 16, 2016 17:56
-
-
Save dklawren/a58dabd8a4300e08f32dd76b6d40ac0f 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 DISTINCT | |
setter.login_name, ft.name, flag.status, grant_group.name | |
FROM | |
flags AS flag | |
JOIN | |
profiles AS setter ON flag.setter_id = setter.userid | |
JOIN | |
flagtypes AS ft ON ft.id = flag.type_id | |
JOIN | |
groups AS grant_group ON grant_group.id = ft.grant_group_id | |
WHERE | |
YEAR(flag.modification_date) = 2016 | |
AND MONTH(flag.modification_date) > 2 | |
AND ft.grant_group_id IS NOT NULL | |
AND flag.status = '+' | |
ORDER BY setter.login_name | |
LIMIT 100000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment