I have 2 tables: Marks (studentnum,marks) Student (SNum, SName)
if I do
Select SName, marks-avg(marks) from Marks join Student on SNum = studentnum
then I only get 1 row returned.
Is there a way to return all the list of students' names and the difference of the student's mark and the average (student's mark - average) without assigning a variable for average?