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
Sravani Jampana
.
1. Purpose: Identify the top 50 Wikipedia pages in the main namespace with the most unique editors in the past month. 2. Selection: Retrieves the page title and the count of unique editors. 3. Joins: Combines data from the `page` and `revision` tables based on page ID. 4. Filters: Excludes redirect pages and only includes revisions made in the last month. 5. Ordering: Sorts results by the count of unique editors in descending order and limits to 50 pages.
Toggle Highlighting
SQL
SELECT p.page_title AS name, COUNT(DISTINCT r.rev_user) AS FROM page p JOIN revision r ON p.page_id = r.rev_page WHERE p.page_namespace = 0 AND p.page_is_redirect = 0 AND r.rev_timestamp >= DATE_FORMAT(NOW() - INTERVAL 1 MONTH, '%Y%m%d%H%i%s') GROUP BY p.page_id ORDER BY unique_editors_count DESC LIMIT 50;
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...