Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
বাংলা উইকিপিডিয়ায় সম্পাদনা পরীক্ষার পরিসংখ্যান
by
MdsShakil
This query is marked as a draft
This query has been published
by
Nokib Sarkar
.
Last 6000 days patrolling statistics
Toggle Highlighting
SQL
use bnwiki_p; SELECT user_name user, count(*) as patrol_cnt FROM logging JOIN actor ON log_actor = actor_id JOIN user ON actor_user = user_id WHERE log_type = 'patrol' AND log_action IN ('patrol', 'patrol', 'patrol', 'patrol') #AND log_timestamp > CONCAT( YEAR( DATE_SUB( NOW(), INTERVAL 6000 DAY ) ), LPAD( MONTH( DATE_SUB( NOW(), INTERVAL 30 DAY ) ), 2, '0'), LPAD( DAY( DATE_SUB( NOW(), INTERVAL 6000 DAY ) ), 2, '0'), '000000' ) GROUP BY user_name ORDER BY patrol_cnt DESC ;
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...