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
Huji
.
Toggle Highlighting
SQL
use fawiki_p; set @year = year(curdate()); set @month = month(curdate()); set @gapyears = 2; /* select user_id, user_name from user where user_id in ( select rev_user from revision where rev_timestamp > concat(@year, LPAD(@month, 2, 0), '01000000') ) and user_id not in ( select rev_user from revision where rev_timestamp < concat(@year, LPAD(@month, 2, 0), '01000000') and rev_timestamp > concat(@year - @gapyears, LPAD(@month, 2, 0), '01000000') ) and user_id in ( select rev_user from revision where rev_timestamp < concat(@year - @gapyears, LPAD(@month, 2, 0), '01000000') ); */ select rev_user from revision where rev_timestamp > concat(@year, LPAD(@month, 2, 0), '01000000')
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...