Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Vexations
.
Toggle Highlighting
SQL
#SELECT patrollers.user_id #, COUNT(log_action) #FROM ( #user_ids of patrollers SELECT user_id FROM user JOIN user_groups ON user_id = ug_user WHERE ug_group = 'patroller'; # user_ids of users who patrolled in the last day #SELECT DISTINCT user_id #FROM user_groups JOIN user ON user_id = ug_user #LEFT JOIN logging ON user_id = log_user #WHERE ug_group = 'patroller' #AND log_action = 'reviewed' #AND log_timestamp > (NOW() - INTERVAL 1 DAY);
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...