Problems / Case When Labels / Editorial
CASE WHEN is SQL's if/else — it evaluates conditions top-down and returns the first match.
score >= 90
>= 80
>= 70
>= 60
The order of WHEN clauses matters. If you checked >= 60 first, every score above 60 would get a D.
Solve Case When Labels yourself →