I found in MYSQL and apparently other database engines that there is a “biggest” function that can be used as: the largest (1, 2, 3, 4), and it will return 4. I need it, but I need using IBM DB2. Does anyone know of such an equivalent function, even if it takes only 2 parameters?
I found somewhere that MAX should do this, but it doesn’t work ... it only works when the MAX column is selected.
If there is no such function, can anyone understand what a stored procedure might look like? (I have no experience with stored procedures, so I don't know what DB2 will be able to).
source
share