Basically I have a Sql Column named phone, where it contains numbers and letter.
I want to get the max integer value of my phone table, I found that it is possible using MAX()
but for me that return max letters not the number value.
Here is how I am doing it:
String query = "SELECT MAX(PHONE) FROM db.stb";
I need the output result to be this 00010511000000000
which is the maximum value in my column
and I really appreciate if you tell me how to specify my column name in my query, something like:
String query = "SELECT MAX(PHONE) FROM db.stb WHERE COLUMNNAME=PHONE";