If the "people" table contains the columns "name" (varchar) and "date of birth" (date), how to find the oldest / youngest friend?
SELECT * FROM buddies WHERE birthdate = ( SELECT MAX(birthdate) FROM buddies ) LIMIT 1;
SELECT name, birthdate FROM people ORDER BY birthdate ASC LIMIT 1
Please note that if there are two or more people with the same date of birth, only one is returned.
If you want to include links
SELECT name FROM people where birthdate = (select max(birthdate) FROM people)