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
Hubaceksarka
.
Toggle Highlighting
SQL
use cswiki_p; select user_id, user_name, course_taken_count, upc_course_id, course_name from (select user.user_id, user.user_name, courses.course_name, count(user.user_id) as course_taken_count from ep_users_per_course as user_per_course join user as user on user.user_id=user_per_course.upc_user_id join ep_courses as courses on user_per_course.upc_course_id=courses.course_id join ep_orgs as orgs on course_org_id=org_id where user_per_course.upc_role=0 group by user.user_id order by course_taken_count desc limit 10) AS top_10 inner join ep_users_per_course as user_per_course on top_10.user_id=user_per_course.upc_user_id WHERE user_per_course.upc_role=0 ;
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...