Related to MDL-4464, a lot of my students have scores of zero on many tests.
Is it okay to use
DELETE FROM mdl_quiz_attempts
WHERE sumgrades = '0'
To delete all those mdl_quiz_attempts table rows where the score is zero?
I would make sure that there are no attempts in progress and put the site into maintenance mode before I used the SQL.
Timothy