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
Zache
.
Toggle Highlighting
SQL
use wikidatawiki_p; select t.*, r2.rev_timestamp, r2.rev_user_text, r2.rev_comment from ( select p2.page_title, p2.page_id, COALESCE(max(r1.rev_timestamp),0) as r1_max_rev_timestamp, datediff(now(), str_to_date(r1.rev_timestamp, "%Y%m%d%H%i%S")) as datediff from page as p1, pagelinks as pl1, page as p2 LEFT JOIN revision_compat as r1 ON r1.rev_page=p2.page_id and datediff(now(), str_to_date(r1.rev_timestamp, "%Y%m%d%H%i%S")) > 90 where p1.page_title="Zache/pori" and p1.page_namespace=2 and pl_from=p1.page_id and pl_from_namespace = 2 and pl_namespace=0 and p2.page_title=pl1.pl_title and p2.page_namespace=0 group by p2.page_id ) as t, revision_compat as r2 WHERE r2.rev_page=t.page_id AND r2.rev_timestamp>r1_max_rev_timestamp -- AND r2.rev_user_text NOT IN ('SannaOikkis') GROUP BY r2.rev_comment;
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...