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.
- Prepare
- SQL
- Basic Select
- Higher Than 75 Marks
- Discussions
Higher Than 75 Marks
Higher Than 75 Marks
Sort by
recency
|
2332 Discussions
|
Please Login in order to post a comment
/Oracle Code/ select name from students where marks >75 order by substr(name,-3) , ID ASC;
In MySQL:
select name from students where Marks > 75 order by SUBSTRING(name, -3), ID ASC;
SELECT NAME FROM STUDENTS WHERE MARKS > 75 ORDER BY RIGHT(NAME, 3), ID ASC;