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
Anerka
.
Toggle Highlighting
SQL
#USE trwiki_p; #SELECT COUNT(*) AS "Toplam", COUNT(DISTINCT page_title) AS "Toplam sayfa", COUNT(DISTINCT il_to) AS "Toplam dosya" #FROM page #JOIN imagelinks #ON page_id = il_from #WHERE (NOT EXISTS( SELECT 1 FROM image WHERE img_name = il_to)) #AND (NOT EXISTS(SELECT 1 FROM commonswiki_p.page WHERE page_title = il_to AND page_namespace = 6)) #LIMIT 20; USE trwiki_p; SELECT CONCAT('# [[Dosya:',il_to,']]') AS "link_to", COUNT (*) AS "sayfa sayısı" FROM page JOIN imagelinks ON page_id = il_from WHERE (NOT EXISTS( SELECT 1 FROM image WHERE img_name = il_to)) AND (NOT EXISTS(SELECT 1 FROM commonswiki_p.page WHERE page_title = il_to AND page_namespace = 6)) ORDER BY page_title LIMIT 100; USE trwiki_p; SELECT CONCAT('# [[Dosya:',il_to,']]') AS "link_to", CASE WHEN il_from_namespace=0 THEN CONCAT('[[',page_title,']]') WHEN il_from_namespace=1 THEN CONCAT('[[Tartışma:',page_title,']]') WHEN il_from_namespace=2 THEN CONCAT('[[Kullanıcı:',page_title,']]') WHEN il_from_namespace=3 THEN CONCAT('[[Kullanıcı_mesaj:',page_title,']]') ELSE CONCAT('[[Diger:',page_title,']]') END AS "Madde" FROM page JOIN imagelinks ON page_id = il_from WHERE (NOT EXISTS( SELECT 1 FROM image WHERE img_name = il_to)) AND (NOT EXISTS(SELECT 1 FROM commonswiki_p.page WHERE page_title = il_to AND page_namespace = 6)) ORDER BY page_title LIMIT 100;
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...