I want to remove a particular character while retrieving a varchar from a table. The query looks like this:
SELECT ServiceName,
case isNumeric(Ramusage)
when 1 then
cast ( ltrim ( rtrim ( ramusage )) as int )
else
0
end as test,
priority
FROM ProcessInfo
Here the problem is the ramusage is a varchar and it stores values like 12,500K, 4,321K.
Here i want to remove the k from the entry and display the number alone.