1.select student.name,avg(score)from student_subject,studentwhere student_subject.studentid=student.idgroup by student.name2.select class.name,avg(score)from student_subject,student_class,classwhere student_subject.studentid=student_class.student and class.id= student_class.classIDgroup by class.name