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
لوقا
.
Toggle Highlighting
SQL
/* select actor_name as name, COUNT(*) as score from logging INNER JOIN actor ON log_actor = actor.actor_id where #and ucase(actor_name) not like ucase("%BOT") COLLATE utf8_general_ci #and actor_name not like "%بوت%" collate utf8_general_ci #and actor_name Not IN (SELECT user_name # FROM user_groups # INNER JOIN user ON user_id = ug_user # WHERE ug_group = "bot") #and #log_action = "patrol" log_action = "approve-i" #and log_namespace = 0 group by actor_name having COUNT(*) > 1 ORDER BY score DESC,name LIMIT 10; */ /* select distinct(log_action) from logging where log_type = "review" */ /* SELECT actor_name AS name, SUM(CASE WHEN log_action = 'approve' THEN 1 ELSE 0 END) AS approve, SUM(CASE WHEN log_action = 'approve-a' THEN 1 ELSE 0 END) AS 'approve-a', SUM(CASE WHEN log_action = 'approve-i' THEN 1 ELSE 0 END) AS 'approve-i', SUM(CASE WHEN log_action = 'approve-ia' THEN 1 ELSE 0 END) AS 'approve-ia', SUM(CASE WHEN log_action = 'approve2' THEN 1 ELSE 0 END) AS 'approve2', SUM(CASE WHEN log_action = 'approve2-i' THEN 1 ELSE 0 END) AS 'approve2-i', SUM(CASE WHEN log_action = 'unapprove' THEN 1 ELSE 0 END) AS 'unapprove', SUM(CASE WHEN log_action = 'unapprove2' THEN 1 ELSE 0 END) AS 'unapprove2', SUM(1) AS 'total' FROM logging INNER JOIN actor ON log_actor = actor.actor_id and log_type = "review" and actor_name in ("FShbib","بندر","جار الله") GROUP BY actor_name ORDER BY name ASC */ /* SELECT actor_name AS name, count(logging.log_id) as score FROM logging INNER JOIN actor ON log_actor = actor.actor_id and log_type = "review" and log_action in ('approve','approve-ia','approve-a','approve2-i','approve-i','approve2','unapprove','unapprove2') and actor_name Not IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot') and ucase (actor_name) not like ucase (_utf8"%BOT") COLLATE utf8_general_ci and actor_name not like _utf8"بوت %" collate utf8_general_ci GROUP BY actor_name ORDER BY score desc,actor_name limit 100 */ /* select distinct(log_action),log_type from logging where log_type in ("patrol") */ SELECT actor_name AS name, #SUM(CASE WHEN log_action = 'autopatrol' THEN 1 ELSE 0 END) AS 'autopatrol', # SUM(CASE WHEN log_action = 'patrol' THEN 1 ELSE 0 END) AS 'patrol', SUM(CASE WHEN log_action not in ('autopatrol','patrol') and log_type = "patrol" THEN 1 ELSE 0 END) AS 'none', SUM(CASE WHEN log_action = 'approve' THEN 1 ELSE 0 END) AS approve, # SUM(CASE WHEN log_action = 'approve-a' THEN 1 ELSE 0 END) AS 'approve-a', SUM(CASE WHEN log_action = 'approve-i' THEN 1 ELSE 0 END) AS 'approve-i', SUM(CASE WHEN log_action = 'approve-ia' THEN 1 ELSE 0 END) AS 'approve-ia', SUM(CASE WHEN log_action = 'approve2' THEN 1 ELSE 0 END) AS 'approve2', SUM(CASE WHEN log_action = 'approve2-i' THEN 1 ELSE 0 END) AS 'approve2-i', SUM(CASE WHEN log_action = 'unapprove' THEN 1 ELSE 0 END) AS 'unapprove', SUM(CASE WHEN log_action = 'unapprove2' THEN 1 ELSE 0 END) AS 'unapprove2', SUM(CASE WHEN log_action in ("patrol" , "approve-i") THEN 1 ELSE 0 END) AS 'total' FROM logging INNER JOIN actor ON log_actor = actor.actor_id and log_type in ("patrol","review") and actor_name in ("ديفيد","FShbib","جار الله") GROUP BY actor_name ORDER BY name ASC # جار الله 4
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...