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
Andreyyshore
.
Testing a version that uses distinct column names, since the usual one suddenly started freaking out. Also, the results have been wrong since late February 2022 and I'm trying to investigate why.
Toggle Highlighting
SQL
USE rowiki_p; /* SELECT rev_actor, actor_user, actor_name, MIN(rev_timestamp) INTO @rev_actor, @actor_user, @actor_name, @rev_timestamp FROM revision LEFT JOIN page ON revision.rev_page = page.page_id LEFT JOIN actor ON revision.rev_actor = actor.actor_id WHERE (page_id IS NOT NULL) AND (page_namespace = 0) AND (page_is_redirect = 0) GROUP BY revision.rev_page LIMIT 10;*/ SELECT actor_id INTO @rev_actor FROM actor LIMIT 10; SELECT @rev_actor FROM DUAL; /* SELECT COUNT(DISTINCT rev_actor), actor_user INTO @no_distinct_ips FROM (SELECT @rev_actor AS rev_actor, @actor_user AS actor_user) WHERE actor_user IS NULL; SELECT @no_distinct_ips AS no_distinct_ips, COUNT(@rev_actor) AS no_articles; SELECT @actor_user AS user_id, @actor_name AS user_name, COUNT(1) AS user_articles, MAX(@rev_timestamp) AS user_latestcreation GROUP BY user_id;*/
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...