Comments - GREATEST

1 year, 6 months ago Lukas Bugaj

Be aware, as soon as at least one argument is null, the result of greatest() is null.

This behaviour was surprising to me as it is different from MS-SQL's greatest() (which ignores NULLs) and also different from MariaDB's aggregation functions like Min() or Max() (which also ignore NULLs).

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.