wiki: Analytical and statistical querying

Version 2 (modified by 206046, 13 days ago) ( diff )

--

Analytical and statistical querying

Find the Students Who Scored Below Average on Assignments

SELECT s.id_student, u.username, sub.progress_score
FROM Submission sub
JOIN Student s ON sub.id_student = s.id_student
JOIN User u ON s.id_user = u.id_user
WHERE sub.progress_score < (SELECT AVG(progress_score) FROM Submission);
Note: See TracWiki for help on using the wiki.