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
Teibit
.
We want a table that for each IAL lists all users that edit on the website and the number of contributions they’ve made in descending order.
Toggle Highlighting
SQL
SELECT p.page_lang AS 'IAL', l.log_user AS 'User ID', COUNT(l.log_page) AS 'Number of Contributions' FROM page AS p, logging AS l WHERE ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'simple' ) AND p.page_lang = 'simple' ) OR ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'eo' ) AND p.page_lang = 'eo' ) OR ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'io' ) AND p.page_lang = 'io' ) OR ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'ia' ) AND p.page_lang = 'ia' ) OR ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'nov' ) AND p.page_lang = 'nov' ) OR ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'ie' ) AND p.page_lang = 'ie' ) OR ( l.log_page IN ( SELECT page_id FROM page WHERE page_lang = 'vo' ) AND p.page_lang = 'vo' ) OR ORDER BY p.page_lang, COUNT(l.log_page) 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...