SQL & Queries


Answer & solution
Answer: SELECT MIN(age) AS age, year FROM STUDENTS GROUP BY year; (no official key was published)
1. Group rows by year so each year is processed independently.
2. MIN(age) computes the youngest age within that group. Output just age and year, as requested, rather than an arbitrary student name or roll number.
3. Ties need no extra rows because the requested attributes are identical for tied youngest students. Standard SQL ignores NULL ages; if all ages in a year are NULL, the result is NULL.