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
Tulsiparida
.
Toggle Highlighting
SQL
#SHOW DATABASES; #USE simplewiki_p; #SHOW TABLES; #DESCRIBE page; #SELECT* FROM revision LIMIT 10; #SELECT* FROM revision ORDER by rev_timestamp LIMIT 10; #SELECT rev_page FROM revision ORDER by rev_timestamp DESC limit 10 #SELECT rev_page, page_title, rev_timestamp FROM revision JOIN page on rev_page=page_id #ORDER by rev_timestamp ASC limit 10; #SELECT* FROM user limit 10; #SELECT rev_page, page_title, rev_timestamp, rev_user, user_name FROM revision JOIN page ON rev_page=page_id JOIN user ON rev_user=user_id ORDER by rev_timestamp ASC limit 10; #SELECT COUNT(rev_id) FROM revision WHERE rev_user="66249"; #SELECT COUNT(rev_id), rev_user FROM revision GROUP by rev_user LIMIT 10; #SELECT COUNT(rev_id) AS editcounts FROM revision GROUP BY rev_user ORDER BY editcounts DESC LIMIT 10; #SELECT COUNT(rev_id) AS editcounts, rev_user, user_name FROM revision JOIN user ON user_id=rev_user GROUP by rev_user ORDER BY editcounts DESC LIMIT 10 #SELECT pl title FROM pagelinks JOIN page ON page_id=pl_from WHERE page_title="Oxford" and pl_namespace="0" AND page_namespace = "0" LIMIT 10; USE hiwiki_p; #SELECT COUNT(rev_id) AS editcounts, rev_user, user_name 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; SELECT page_title, page_id, page_len AS L, page_namespace, COUNT(DISTINCT rev_user) AS U, COUNT(rev_id) AS E FROM revision JOIN page on rev_page = page_id WHERE page_namespace=0 AND rev_user_text NOT LIKE "%bot%" AND rev_user_text NOT LIKE "%Bot%" AND rev_user_text NOT LIKE "%bOt%" AND rev_user_text NOT LIKE "%boT%" AND rev_user_text NOT LIKE "%BOt%" AND rev_user_text NOT LIKE "%BoT%" AND rev_user_text NOT LIKE "%bOT%" AND rev_user_text NOT LIKE "%BOT%" GROUP BY rev_page ORDER BY RAND() LIMIT 10000
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...