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
BDA2017
.
Toggle Highlighting
SQL
#What databases exist? #SHOW DATABASES; #Select a database USE miwiki_p; Select * from revision LIMIT 20; Select * from page LIMIT 20; Select * from user LIMIT 20; #How many times was each page edited SELECT COUNT(rev_page) AS rev_counts FROM revision GROUP BY rev_page LIMIT 100; #Add where namespace = 0 SELECT COUNT(rev_page) AS rev_counts, page_title FROM revision JOIN page ON rev_page = page_id WHERE page_namespace = "0" GROUP BY rev_page LIMIT 100; #Add where user_name not like bot SELECT COUNT(rev_page) AS rev_counts, page_title FROM revision JOIN page ON rev_page = page_id JOIN user ON rev_user = user_id WHERE user_name NOT LIKE "%bot%" WHERE page_namespace = "0" GROUP BY rev_page LIMIT 100;
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...