Is it possible to select/cherry pick some grades to show across categories/courses?

Is it possible to select/cherry pick some grades to show across categories/courses?

by Steve Daly -
Number of replies: 1

Hi, 

Extremely new to SQL but loving it so far and many thanks to the SQL AD Hoc contributions. 

What I would like to know:

Situation: Have 12 courses in three categories and want a report on users and their scores on a select few quizzes, not all quizzes. 

Is this possible to achieve through an SQL query?

Ideally the data we could get back would be

Category /  First Name / Last Name / Course /Group / Attendance / Quiz 1/ Quiz 2 /  Quiz 3 /....Quiz X. 


Any thoughts or hints would be great. 

Average of ratings: -
In reply to Steve Daly

Re: Is it possible to select/cherry pick some grades to show across categories/courses?

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

You should be able to filter by Quiz name - WHERE Quiz Name like "Quiz 1" or "Quiz 2".  Please verify syntax for SQL.