I have a varchar field CaseNo
in table which contains the data in this format for eg.
FA/12/2014,
FA/11/2015,
FA/12/2015,
FA/11/2014,
CC/12/2015,
CC/11/2015
I wanted to sort the result of select
query in the following manner
CC/11/2015
CC/12/2015
FA/11/2014
FA/12/2014
FA/11/2015
FA/12/2015
Firstly it should sort first two characters in alphabetic order.
And Then the remaining digits in ascending order and result should be like as above..
Note:- last part of the data is year but middle part is not a month it is just a number.
Is this possible to do so.
Thanks