Sybase ASE now has GREATEST Function but only the input data types INT, CHAR and VACHAR are supported.