Below is my query. I am not sure what cause the Not A group by expression error. Any help is much appreciated. =)
SELECT c.courseID, c.courseName, AVG(a.Mark
try
ORDER BY Average_Mark
instead of
ORDER BY Mark