I have a table with a column "version" It specifies software version with a string "3.2.2.0" for example It can have too the "DEBUG" version
I want to obtain the MAX value of the column, but omitting DEBUG, DEBUG only shown if is the only value
Examples:
Version
-------
3.2.0
3.2.0
DEBUG
3.2.1
3.2.2
MAX(version)
result obtained -> DEBUG
result desired -> 3.2.2
Version
-------
DEBUG
DEBUG
DEBUG
MAX(version)
result -> DEBUG OK!
Thanks!