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
LD
.
fr:Wikipédia:Bulletin_des_administrateurs/2023/Semaine_14#Création_de_catégories_à_la_chaîne
Toggle Highlighting
SQL
USE frwiki_p; SELECT page.page_title AS Page, COUNT(DISTINCT cl_to, IF(cl_type = 'page', page_id, NULL)) AS Total_Children FROM page INNER JOIN categorylinks ON page.page_id = categorylinks.cl_from LEFT JOIN page AS subpage ON categorylinks.cl_to = subpage.page_title AND subpage.page_namespace = 0 WHERE page.page_namespace = 14 AND page.page_title IN ( SELECT page.page_title FROM page INNER JOIN revision ON page.page_latest = revision.rev_id INNER JOIN actor ON revision.rev_actor = actor.actor_id WHERE page_namespace = 14 AND actor.actor_name = 'Alexandre056' ) GROUP BY page.page_title HAVING Total_Children < 10;
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...