I am trying to create a report using SQL to show:
1) a custom field
2) Course Name
3) Date of completion
Can anyone please help me with this SQL Query, specially how do i SELECT a custom field which i created on moodle registration page for users.