SELECT ( Sum(r.marks_attained) / Sum(r.total_marks) * 100 )AS marks,
s.name
FROM result r,
student s
WHERE r.student_id = s.student_id
GROUP BY r.student_id
AND
ORDER BY marks DESC
How i can get only students marks with percentage greater than 90?
can i use marks in where clause?