I have a select query in Oracle SQL which returns the table with the results
Location count
site1 95000
site2 556900
site3 65600
I have then used the floor function (floor/1000) to obtain last 3 digits and append it with K+ using floor(count/1000) || 'K+' as count . Once done with that, am getting a table like this
Location count
site1 95K+
site2 556K+
site3 65K+
Now the issue is, when am sorting the result table using the order by count desc it is sorting like this
Location count
site1 95K+
site3 65K+
site2 556K+
The sorting is happening by considering the 1st digit I guess. I need the result to be generated like this while sorting in descending order.
Location count
site2 556K+
site1 95K+
site3 65K+
Is there a way to achieve this result? Any suggestions