Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Percantage of users with gadgets on subpages
by
Artbarte
This query is marked as a draft
This query has been published
by
Artbarte
.
This query is showing the percentage of with CSS on their subpages. It fetches count of all users and amount of users with CSS, then makes simple calculation to get the percentage.
Toggle Highlighting
SQL
use enwiki_p; select COUNT(DISTINCT SUBSTRING_INDEX(page_title, '/', 1))/(select COUNT(DISTINCT SUBSTRING_INDEX(page_title, '/', 1)) from page where page_namespace=2) * 100 as Percentage from page where page_namespace=2 and page_content_model="css"
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...