I have this column in a talbe which for historical reason is a string but nowdays new values are put in are numbers.
I have to find the biggest value from an interval of numbers but the values are string in the DB :(
If op_calcul would have been a number it would have been trivial sql:
Select MAX(op_calcul) FROM nom_prod where op_calcul >=500 and op_calcul < 5000
but having them as varchar put me into some trouble.
Tried different scenarios but did not come with a solution yet.
Any hint ?
Thanks