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
Tgr
.
Lists unreviewed pages (as in FlaggedRev's Special:UnreviewedPages) by number of days they have existed.
Toggle Highlighting
SQL
use huwiki_p; SELECT CONCAT( CASE page_namespace WHEN 0 THEN '' WHEN 6 THEN 'Fájl:' WHEN 10 THEN 'Sablon:' WHEN 14 THEN 'Kategória:' WHEN 100 THEN 'Portál:' WHEN 828 THEN 'Modul:' END ) page_title) AS title, CONCAT('https://hu.wikipedia.org/w/index.php?curid=', page_id) AS url, rev_timestamp, STR_TO_DATE(rev_timestamp, '%Y%m%d%h%i%s') AS mysql_timestamp, DATEDIFF(NOW(), STR_TO_DATE(rev_timestamp, '%Y%m%d%h%i%s')) AS days_unreviewed FROM ( SELECT page_id MIN(rev_id) as rev_id FROM ( SELECT page_id FROM page LEFT JOIN flaggedpages ON fp_page_id = page_id WHERE fp_page_id IS NULL AND page_namespace IN (0, 6, 10, 14, 100, 828) AND page_is_redirect = 0 ) unreviewed_pages JOIN revisions ON rev_page = page_id GROUP BY page_id ) first_revisions JOIN page USING (page_id) JOIN revision USING (rev_id) ORDER BY days_unreviewed DESC ;
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...