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
|
2343 Discussions
|
Please Login in order to post a comment
SET NOCOUNT ON;
select name
from STUDENTS
where marks > 75
order by
RIGHT(name,3),ID; go
SELECT name FROM students WHERE marks > 75 ORDER BY RIGHT(name, 3), id;
For MySQL this code works
select name from students where marks>75 order by right(name,3),id asc;