My sql query is..
Select left(Bundle_code,2)
From Item_bundle
where Item_code='F-4X10AL' and Branch ='KOCHI'
Order by CAST ( Case When ISNUMERIC (left(Bundle_code,2))=1
Then left( Bundle_code,2)
Else -99 End as Int)
The result I got was
result:
2B
6B
3B
7B
8B
9B
10
11
But the order is not correct .Please help me to get a correct order