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
Conniecc1
.
Toggle Highlighting
SQL
USE enwiki_p; /*SELECT page_title, page_id, page_namespace, COUNT(rev_id) AS rev_count, COUNT(rev_id) OVER (PARTITION BY rev_id) AS rev_count_percentage FROM page p RIGHT JOIN revision r ON p.page_id = r.rev_page WHERE page_title IN ('Sugar' ,'Salt') GROUP BY 1,2,3 ORDER BY 1,4 DESC*/ SELECT page_title, page_id, page_namespace, COUNT(rev_id) OVER (PARTITION BY page_title,page_id,page_namespace) AS rev_count, COUNT(rev_id) OVER (PARTITION BY page_title) AS rev_count_percentage FROM page p RIGHT JOIN revision r ON p.page_id = r.rev_page WHERE page_title IN ('Sugar' ,'Salt')
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...