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
Jack laviolette
.
Toggle Highlighting
SQL
USE lawiki_p; # SELECT * from revision LIMIT 10; #SELECT * from page WHERE page_namespace = 1 OR page_namespace = 0; # CREATE TEMPORARY TABLE talkpages AS SELECT page_id, page_len FROM page WHERE page_namespace = 1; SELECT page_title, page_id, page_len, COUNT(rev_id) AS editcounts, COUNT(DISTINCT rev_user) AS editorcount FROM revision JOIN page ON page_id = rev_page WHERE page_namespace = 0 AND page_is_redirect = 0 GROUP by rev_page LIMIT 1000; #LEFT JOIN talkpages ON page_id; #SELECT page_title, page_len FROM page WHERE page_namespace = 1 LIMIT 10; # Collect # the number of distinct editors who have edited each article, U. # the number of revisions of each article, E. # the length of the article in bytes, L. # the length of the talk page associated to the article, T.
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...