by Colin Fraser.
You could try: SELECT*FROM`mdl_assignment_submissions` that is specifically related to the assignment activity. I am assuming, of course, you are looking only at the Assignment activity.