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
Bulgu
.
Toggle Highlighting
SQL
USE trwiki_p; SET @KAT=replace("Bozuk dosya bağlantıları içeren sayfalar"," ","_"); SET @DS =3; -- maddedeki dosya sayısı SELECT concat("[[:",p.page_title,"|",p.page_title,"]]") as madde, concat("[[:Dosya:",il.il_to,"|",il.il_to,"]]") as dosyalardan_biri -- , count(*) as dosya_sayisi , concat("[http://tr.wikipedia.org/wiki?curid=",p.page_id," link]") as link , p.page_latest as son_revizyon , concat("[http://tr.wikipedia.org/wiki?action=edit&curid=",p.page_id,"§ion=0 link0]") as link0 -- ,concat("{{ns:",p.page_namespace,"}}") as ns from imagelinks il join page p on p.page_id = il.il_from JOIN categorylinks cats ON cats.cl_from = p.page_id left join image img on img.img_name = il.il_to WHERE p.page_namespace = 0 and cats.cl_to = @KAT and img.img_user_text is NULL and il.il_to not in (select pq.page_title from page pq where pq.page_namespace = 6) and il.il_to not in (select cpq.page_title from commonswiki_p.page cpq where cpq.page_namespace = 6) group by p.page_id having count(il.il_to) = @DS -- group by il.il_to order by p.page_latest, 1 asc ;
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...