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
SELECT page.page_title AS page_name, MAX(revision.rev_id) AS current_rev_id, MAX(revision.rev_timestamp) AS current_rev_timestamp, CASE WHEN MAX(recentchanges.rc_patrolled) = 1 THEN 'patrolled' WHEN MAX(rev_patrolled.rc_patrolled) = 1 THEN 'new_changes' ELSE 'unpatrolled' END AS status FROM page 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 LEFT JOIN recentchanges rev_patrolled ON revision.rev_id = rev_patrolled.rc_this_oldid AND rev_patrolled.rc_namespace = page.page_namespace AND rev_patrolled.rc_patrolled = 1 WHERE page.page_title IN ('Інцели') GROUP BY page.page_title ORDER BY page.page_title;
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...