I am trying to fetch an id from an oracle table. It\'s something like TN0001234567890345. What I want is to sort the values according to the right most 10 posit
TN0001234567890345
You can use SUBSTR function as:
select substr('TN0001234567890345',-10) from dual;
Output:
4567890345