I have an id column in table with following data:
K1
K2
K3
....
876
765
887
K12
K13
I want to find the max id with constant 'K' I have used following syntax
Select max(id) from table where id like 'k%'
The end result is K9 How can I get the accurate result which is k13