So I have these tables:
Student(Rollno,name,address)
Subject(sub_code,sub_name)
Marks(Rollno,sub_code, marks)
I want to display average of marks roll no wise with name too. I used this query to find average of marks:
SELECT Rollno,avg(marks) FROM MARKS GROUP BY Rollno;
How do I get name of respective roll numbers ?