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
IKhitron
.
Toggle Highlighting
SQL
USE hewiki_p; SELECT page_title AS 'from', CASE page_namespace WHEN -2 THEN "מדיה" WHEN -1 THEN "מיוחד" WHEN 0 THEN ":" WHEN 1 THEN "שיחה" WHEN 2 THEN "משתמש" WHEN 3 THEN "שיחת משתמש" WHEN 4 THEN "ויקיפדיה" WHEN 5 THEN "שיחת ויקיפדיה" WHEN 6 THEN "קובץ" WHEN 7 THEN "שיחת קובץ" WHEN 8 THEN "מדיה ויקי" WHEN 9 THEN "שיחת מדיה ויקי" WHEN 10 THEN "תבנית" WHEN 11 THEN "שיחת תבנית" WHEN 12 THEN "עזרה" WHEN 13 THEN "שיחת עזרה" WHEN 14 THEN "קטגוריה" WHEN 15 THEN "שיחת קטגוריה" WHEN 100 THEN "פורטל" WHEN 101 THEN "שיחת פורטל" WHEN 118 THEN "טיוטה" WHEN 119 THEN "שיחת טיוטה" WHEN 828 THEN "יחידה" WHEN 829 THEN "שיחת יחידה" ELSE "אחרים" END AS 'from ns', rd_title AS 'to', CASE rd_namespace WHEN -2 THEN "מדיה" WHEN -1 THEN "מיוחד" WHEN 0 THEN ":" WHEN 1 THEN "שיחה" WHEN 2 THEN "משתמש" WHEN 3 THEN "שיחת משתמש" WHEN 4 THEN "ויקיפדיה" WHEN 5 THEN "שיחת ויקיפדיה" WHEN 6 THEN "קובץ" WHEN 7 THEN "שיחת קובץ" WHEN 8 THEN "מדיה ויקי" WHEN 9 THEN "שיחת מדיה ויקי" WHEN 10 THEN "תבנית" WHEN 11 THEN "שיחת תבנית" WHEN 12 THEN "עזרה" WHEN 13 THEN "שיחת עזרה" WHEN 14 THEN "קטגוריה" WHEN 15 THEN "שיחת קטגוריה" WHEN 100 THEN "פורטל" WHEN 101 THEN "שיחת פורטל" WHEN 118 THEN "טיוטה" WHEN 119 THEN "שיחת טיוטה" WHEN 828 THEN "יחידה" WHEN 829 THEN "שיחת יחידה" ELSE "אחרים" END AS 'to ns' FROM page JOIN redirect ON redirect.rd_from = page.page_id WHERE page.page_namespace <> 0 AND NOT page_namespace = rd_namespace AND NOT (page_namespace = 2 AND rd_namespace = 0) AND NOT (page_namespace = 4 AND rd_namespace = 0) AND NOT (page_namespace = 12 AND rd_namespace = 0) AND NOT (page_namespace = 1 AND rd_namespace = 1) AND NOT (page_namespace = 14 AND rd_namespace = 0) AND NOT (page_namespace = 4 AND rd_namespace = -1) AND NOT (page_namespace = 12 AND rd_namespace = 4) AND NOT (page_namespace = 100 AND rd_namespace = 4) AND NOT (page_namespace = 4 AND rd_namespace = 5) AND NOT page_namespace = 3 AND NOT page_namespace = 2 AND NOT (rd_title LIKE "User:%" AND page_namespace = 2) AND NOT (rd_title LIKE "user:%" AND page_namespace = 2) AND NOT (rd_title LIKE "en:user:%" AND page_namespace = 2) AND NOT (rd_title LIKE "User_talk:%" AND page_namespace = 3) AND NOT (rd_title LIKE "User_talk:%" AND page_namespace = 2) AND NOT (page_namespace = 10) #to be fixed AND NOT (page_namespace = 4) #to be fixed
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...