[hackerrank] MySQL - The Report Smelt Roe Sushi

데이터 분석/[SQL] 기초

[hackerrank] MySQL - The Report

INCHELIN 2025. 3. 20. 15:19
728x90
select case
    when grade >= 8 then name
    else "NULL" end as name, grade, marks
from students as s
join grades as g on s.marks between g.min_mark and g.max_mark
order by grade desc, name asc, marks asc
728x90