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
Tomigaoka
.
Toggle Highlighting
SQL
SELECT P1.page_title AS "リダイレクト元カテゴリ", R.rd_title AS "リダイレクト先カテゴリ", A1.actor_name AS "リダイレクト元の初版作成者", H1.rev_timestamp AS "リダイレクト元の初版作成日時", C1.comment_text AS "リダイレクト元の初版コメント", H1a.rev_count AS "リダイレクト元の総版数", A2.actor_name AS "リダイレクト先の初版作成者", H2.rev_timestamp AS "リダイレクト先の初版作成日時", C2.comment_text AS "リダイレクト先の初版コメント", H2a.rev_count AS "リダイレクト先の総版数" FROM page P1 INNER JOIN redirect R ON P1.page_id = R.rd_from INNER JOIN revision H1 ON P1.page_id = H1.rev_page INNER JOIN ( SELECT MIN(rev_id) AS rev_id, rev_page, COUNT(rev_id) AS rev_count FROM revision GROUP BY rev_page ) AS H1a ON H1.rev_id = H1a.rev_id AND H1.rev_page = H1a.rev_page INNER JOIN actor A1 ON H1.rev_actor = A1.actor_id INNER JOIN comment C1 ON H1.rev_comment_id = C1.comment_id INNER JOIN page P2 ON R.rd_title = P2.page_title AND R.rd_namespace = P2.page_namespace INNER JOIN revision H2 ON P2.page_id = H2.rev_page INNER JOIN ( SELECT MIN(rev_id) AS rev_id, rev_page, COUNT(rev_id) AS rev_count FROM revision GROUP BY rev_page ) AS H2a ON H2.rev_id = H2a.rev_id AND H2.rev_page = H2a.rev_page INNER JOIN actor A1 ON H2.rev_actor = A2.actor_id INNER JOIN comment C2 ON H2.rev_comment_id = C2.comment_id WHERE P1.page_namespace=14 AND P2.page_namespace=14 AND R.rd_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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...