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.
select name FROM students
WHERE marks>75 ORDER BY RIGHT(name,3),Id ASC;
you have to output name of a student
select right(name,3) from students where marks > 75 order by ID asc ;and this query gives last three character of name only
thats why its not working.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Higher Than 75 Marks
You are viewing a single comment's thread. Return to all comments →
select name FROM students WHERE marks>75 ORDER BY RIGHT(name,3),Id ASC;
you have to output name of a student select right(name,3) from students where marks > 75 order by ID asc ;and this query gives last three character of name only thats why its not working.