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
Pppery
.
Toggle Highlighting
SQL
SET @username = 'Lapablo'; SET @actorId = (select actor_id from actor where actor_user=@username); /* SELECT * FROM actor WHERE actor_name = @userName LIMIT 1; */ SELECT CASE WHEN pt.ptrp_reviewed IS NULL THEN 'enqueue' ELSE 'unreview' END AS 'Action to take', /* COUNT(l.log_page) AS 'count', GROUP_CONCAT(l.log_page) AS 'page ids' /**/ l.log_page /**/ FROM logging_userindex l LEFT JOIN pagetriage_page pt ON pt.ptrp_page_id = l.log_page WHERE l.log_actor = @actorId AND l.log_type = 'pagetriage-curation' AND l.log_action = 'reviewed' AND EXISTS ( SELECT 1 FROM page pg WHERE pg.page_id = l.log_page /* Not deleted */ LIMIT 1 ) /* GROUP BY CASE WHEN pt.ptrp_reviewed IS NULL THEN 'enqueue' ELSE 'unreview' END /**/
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...