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
Mameilon
.
Toggle Highlighting
SQL
use huwiki_p; set @mindate='201801010000'; set @maxdate='201812312359'; select rmax.rev_page, rmin.rev_len as minlength, rmax.rev_len as endlength from (select r2.rev_page, max(r2.rev_timestamp) maxtime from revision r2 where r2.rev_timestamp<=@maxdate group by r2.rev_page) as t join (select r2.rev_page, max(r2.rev_timestamp) mintime from revision r2 where r2.rev_timestamp<=@mindate group by r2.rev_page) as t2 on t.rev_page=t2.rev_page join revision rmax on t.rev_page=rmax.rev_page join revision rmin on rmax.rev_page=rmin.rev_page where rmax.rev_timestamp=t.maxtime and rmin.rev_timestamp=t2.mintime and rmax.rev_page in (42,197);
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...