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
Edgars2007
.
TODO: lapu aizsardzība (https://www.mediawiki.org/wiki/Manual:Page_restrictions_table)
Toggle Highlighting
SQL
use lvwiki_p; Select Count(r.rev_page), f.page_title from revision r join page f on f.page_id=r.rev_page where f.page_namespace=0 and (r.rev_comment like "Reverted%" or r.rev_comment like "Atcēlu%" or r.rev_comment like "Novērsu%") group by r.rev_page order by Count(r.rev_page) DESC limit 100; /*ar lapu aizsardzību use lvwiki_p; Select Count(r.rev_page), f.page_title, f.page_namespace, rest.pr_level from revision r join page f on f.page_id=r.rev_page join page_restrictions rest on rest.pr_page=r.rev_page where f.page_namespace=0 and (r.rev_comment like "Reverted%" or r.rev_comment like "Atcēlu%" or r.rev_comment like "Novērsu%") group by r.rev_page order by Count(r.rev_page) DESC limit 80; ----------------cita versija ===== use lvwiki_p; Select Count(r.rev_page), f.page_title, f.page_namespace, rest.pr_level from revision r join page f on f.page_id=r.rev_page join page_restrictions rest on rest.pr_page=r.rev_page where f.page_namespace=0 and r.rev_timestamp>20100101010101 and rest.pr_level<>"autopatrol" and (r.rev_comment like "Reverted%" or r.rev_comment like "Atcēlu%" or r.rev_comment like "Novērsu%") group by r.rev_page order by Count(r.rev_page) DESC limit 10; */ /* and rest.pr_level<>"autopatrol"*/
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...