We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
/* the solution */
select
case when G.Grade <8 then null else S.Name end as Name,G.Grade ,S.Marks
from Students as S
inner join Grades as G
on S.Marks between G.Min_Mark and G.Max_Mark
order by G.Grade desc,S.Name,S.Marks
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Report
You are viewing a single comment's thread. Return to all comments →
/* the solution */ select case when G.Grade <8 then null else S.Name end as Name,G.Grade ,S.Marks from Students as S inner join Grades as G on S.Marks between G.Min_Mark and G.Max_Mark order by G.Grade desc,S.Name,S.Marks