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
Arjunaraoc
.
Useful for knowing the the number of pages in all books when the chapter pages are done.
Toggle Highlighting
SQL
use tewikisource_p; SELECT LEFT( SUBSTRING(page_title,1, CHARINDEX("/",page_title)+1))) as pageprefix, COUNT(pl_title) as numpages FROM page JOIN pagelinks ON pl_from = page_id WHERE pl_namespace = 0 and page_namespace=0 and pl_title LIKE '%/%' GROUP BY page_title LIMIT 300;
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...