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.
anyone can tell me the difference between this
SELECT id, substring(name,-3), marks
FROM students
WHERE marks>75
ORDER BY substring(name,-3),
id; what is wrong in this way i got the same output as using
SELECT (NAME) FROM STUDENTS WHERE MARKS>75 ORDER BY SUBSTR(NAME,-3,3), ID ASC;
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 →
anyone can tell me the difference between this SELECT id, substring(name,-3), marks FROM students WHERE marks>75 ORDER BY substring(name,-3), id; what is wrong in this way i got the same output as using SELECT (NAME) FROM STUDENTS WHERE MARKS>75 ORDER BY SUBSTR(NAME,-3,3), ID ASC;