Higher Than 75 Marks

Sort by

recency

|

2402 Discussions

|

  • + 0 comments

    Hello! , just for anybody who was as confused as me , order by RIGHT(name,3), ID ASC

    SQL uses your first order by which in this case is RIGHT(name,3) , but when SQL finds a duplicates , SQL automatically moves to the 'ID ASC' which counts as a secondery priorty hope this helps someone in need to understand

  • + 0 comments

    SQL: SELECT NAME FROM STUDENTS WHERE MARKS > 75 ORDER BY SUBSTR(NAME, -3), ID;

  • + 0 comments

    SELECT Name from STUDENTS WHERE Marks > 75 ORDER BY RIGHT(Name, 3), ID ASC;

  • + 0 comments

    SELECT NAME FROM STUDENTS WHERE MARKS > 75 ORDER BY RIGHT(NAME,3),ID

  • + 0 comments

    SELECT NAME FROM STUDENTS WHERE MARKS>75 ORDER BY RIGHT(NAME,3) ASC,ID ASC;