i have this kind of table and find the maximum mark
STUDENT
|id | name | mark |
|1 | john | 56 |
|2 | sara | 81 |
|3 | mattew| 65 |
the out suppose to be like this
|id | name | mark |
|2 | sara | 81 |
but i get this kind of output
|id | name | mark |
|1 | john | 81 |
i write this in sql
SELECT id,name,MAX(mark)
FROM student;
WHERE name IN
(SELECT name
FROM student);
how can i correct the sql?