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
WikiBayer
.
Toggle Highlighting
SQL
SELECT a.actor_name AS userName, COALESCE(sent.gegeben, 0) AS gegeben, COALESCE(received.bekommen, 0) AS bekommen FROM actor a LEFT JOIN ( SELECT log_actor, COUNT(log_id) AS thanksSent FROM logging_logindex WHERE log_type = "thanks" GROUP BY log_actor ) sent ON a.actor_id = sent.log_actor LEFT JOIN ( SELECT log_title, COUNT(log_id) AS bekommen FROM logging_logindex WHERE log_type = "thanks" GROUP BY log_title ) received ON a.actor_name = received.log_title ORDER BY gegeben DESC, bekommen DESC LIMIT 50;
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...