Find name and age of the oldest sailor(s)
The first query is illegal!
- We’ll look into the reason a bit later, when we discuss GROUP BY.
Third query equivalent to second query
- allowed in SQL/92 standard, but not supported in some systems.
SELECT S.sname, MAX (S.age)
WHERE (SELECT MAX (S2.age)