Fork of
broken links to commons categories
by בורה בורה
This query is marked as a draft
This query has been published
by IKhitron.
SQL
x
use hewiki_p;
select page_title, substr(iwl_title, 10) from iwlinks join page
on page_id = iwl_from
where
iwl_prefix='commons' and length(iwl_title)>0
and iwl_title like 'Category:%' and page_namespace =0
and not exists(select * from commonswiki_p.page
where page_title = substr(iwl_title, 10)
and page_namespace = 14)
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.