Please check the above results output. As you can see after DT - 10
it displays DT - 100
. But I need to display DT - 12
instead of DT - 100
. I tried this in two ways, but the results are same.
1st try
SELECT *
FROM fas_details
WHERE equipment_no LIKE 'DT%'
ORDER BY CAST(equipment_no AS DECIMAL(10,2))
2nd try
SELECT *
FROM fas_details
WHERE equipment_no LIKE 'DT%'
ORDER BY equipment_no * 1 ASC, equipment_no ASC
Already checked following questions,