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
GregRundlett
.
Toggle Highlighting
SQL
SELECT t1.wl_user id, user_name, t1.watches, t2.latest FROM (SELECT wl_user, COUNT(*) watches FROM watchlist w GROUP BY w.wl_user HAVING watches > 100) t1 INNER JOIN (SELECT r.rev_user, MAX(rev_timestamp) latest FROM revision r GROUP BY rev_user HAVING STR_TO_DATE(latest, '%Y%m%d%H%i%s') < DATE_SUB(NOW(), INTERVAL 2 YEAR)) t2 ON t1.wl_user = t2.rev_user INNER JOIN user ON t1.wl_user = user_id ORDER BY watches 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...