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
Annatanktank
.
Toggle Highlighting
SQL
USE newiki_p; #SHOW TABLES; #DESCRIBE page; #Might want to use page_id (just to join), page_is_redirect (to remove from my data - 1 is a redirect, 0 in all other cases), page_len, #page_namespace (0 - main, 1 - talk) #DESCRIBE revision_userindex; #Might want to use rev_page (just to join), #DESCRIBE archive; #DESCRIBE pif_edits; #DESCRIBE revision; #Might want to use rev_id (to count?), rev_page (just to join with page_id in page), rev_user (to count?), #SELECT * FROM page LIMIT 10; #SELECT COUNT(rev_id) AS editcounts, rev_user, user_name, user_registration FROM revision JOIN user ON user_id = rev_user WHERE user_name NOT LIKE "%bot%" AND user_name NOT LIKE "%Bot%" GROUP by rev_user ORDER BY editcounts DESC LIMIT 10; SELECT COUNT(rev_id) AS editcount, COUNT(rev_user) AS editorcount FROM revision JOIN page ON page_id = rev_page WHERE page_is_redirect NOT LIKE "1" GROUP by rev_user ORDER BY editcounts DESC LIMIT 10;
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...