NOW TRY FIRING THE FOLLOWING QUERY:
SELECT * FROM TEMPALPHANUMERIC ORDER BY PRODNAME
YOU WIL NOT GET THE DESIRED OUTPUT, AS ONE HAS TO EXTRACT THE DIGITS FROM THE STRING TO ENABLE PROPER SORTING
IF ONE WANTS TO SORT ALPHANUMERIC VALUES, ONE HAS TO EXTRACT THE DIGITS FROM THE STRING AND SORT THERE AFTER. THE BELOW QUERY MAY HELP YOU SORT THE ALPHANUMERIC VALUES.
FROM TEMPALPHANUMERIC
ORDER BY EXTRACTDIGIT
OUTPUT:
No comments:
Post a Comment