I have a table student(id, name, department, age, score). I want to find the youngest student who has the highest(among the youngest students) score of each department. In SQL S
In addition to Allan's answer, this works fine too:
select * from (SELECT * FROM student order by age asc, score desc) where rownum = 1;