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
Mike.Khoroshun
.
Toggle Highlighting
SQL
WITH articles_to_check AS ( SELECT 'Локатор (Apple)' AS article_name UNION SELECT 'Інцели' AS article_name ) SELECT atc.article_name AS page_name, revision.rev_id, revision.rev_timestamp, CASE WHEN recentchanges.rc_patrolled = 1 THEN 'patrolled' WHEN recentchanges.rc_id IS NOT NULL THEN 'new_changes' ELSE 'unpatrolled' END AS status FROM articles_to_check atc LEFT JOIN page ON atc.article_name = page.page_title LEFT JOIN revision ON page.page_id = revision.rev_page LEFT JOIN recentchanges ON revision.rev_id = recentchanges.rc_this_oldid AND recentchanges.rc_namespace = page.page_namespace WHERE revision.rev_id = (SELECT MAX(rev_id) FROM revision WHERE rev_page = page.page_id) ORDER BY atc.article_name;
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...