Given a table Students with columns StudentID, Name, Age, Score, which of the…

Given a table Students with columns StudentID, Name, Age, Score, which of the following SQL queries will return the highest score for each age group?

  1. A.

    SELECT Age, MAX(Score) FROM Students GROUP BY Age;

  2. B.

    SELECT Age, Score FROM Students GROUP BY Age;

  3. C.

    SELECT Age, MAX(Score) FROM Students;

  4. D.

    SELECT Age, Score FROM Students WHERE Score = (SELECT MAX(Score) FROM Students GROUP BY Age);

Attempted by 677 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…