Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Liczba stron w przestrzeni Strona w plwikisource
by
Ankry
This query is marked as a draft
This query has been published
by
Ankry
.
Toggle Highlighting
SQL
USE plwikisource_p; SELECT NOW() AS czas, COUNT(*) AS ile FROM page WHERE page_namespace = 100; SELECT cat_title, COUNT(*) AS ilosc FROM category JOIN categorylinks ON cat_title=cl_to WHERE cl_to IN ('Uwierzytelniona','Skorygowana') AND cl_type='page' GROUP BY cl_to UNION SELECT 'RAZEM', SUM(ilosc) FROM (SELECT cat_title, COUNT(*) AS ilosc FROM category JOIN categorylinks ON cat_title=cl_to WHERE cl_to IN ('Uwierzytelniona','Skorygowana') AND cl_type='page' GROUP BY cl_to) AS A; use dewikisource_p; SELECT cat_title, COUNT(*) AS ilosc FROM category JOIN categorylinks ON cat_title=cl_to JOIN page ON page_id=cl_from WHERE cl_to IN ('Fertig','Korrigiert') AND cl_type='page' AND page_namespace=102 GROUP BY cl_to UNION SELECT 'RAZEM', SUM(ilosc) FROM (SELECT cat_title, COUNT(*) AS ilosc FROM category JOIN categorylinks ON cat_title=cl_to JOIN page ON page_id=cl_from WHERE cl_to IN ('Fertig','Korrigiert') AND cl_type='page' AND page_namespace=102 GROUP BY cl_to) AS A;
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...