Skip to content

Instantly share code, notes, and snippets.

@mikebuchanon
Created July 29, 2013 19:23
Show Gist options
  • Save mikebuchanon/6106992 to your computer and use it in GitHub Desktop.
Save mikebuchanon/6106992 to your computer and use it in GitHub Desktop.
Find all badges issued for users in Moodle25
select mb.name as badgename,
mu.username,
to_timestamp(mbi.dateissued) as dateissued
from mdl_badge_issued mbi
join mdl_badge mb on mbi.badgeid=mb.id
join mdl_user mu on mu.id=mbi.userid
order by to_timestamp(mbi.dateissued);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment