Skip to main content

Improving Students

HardPremium

Given the schema below, write a function to find the students that have consistently improved academically throughout the years.

student_idyearclassyearly_gpa
intintvarcharfloat

Your output should be in the following format:

student_id202120222023average_gpa
intfloatfloatfloatfloat
  • The columns 2021, 2022 and 2023 should be populated with their respective yearly GPAs
  • average_gpa should be rounded to the nearest 2 decimal places