Exercise: Above Average
Find students with marks above class average.
Solution
sql
1SELECT name, marks FROM students
2WHERE marks > (SELECT AVG(marks) FROM students);
Find students with marks above class average.
1SELECT name, marks FROM students
2WHERE marks > (SELECT AVG(marks) FROM students);