Be sure to review our Idea Submission Guidelines for more information!
Submission GuidelinesTwo very useful functions
According to https://www.w3schools.com/sql/func_mysql_least.asp
The LEAST() function returns the smallest value of the list of arguments.
example : SELECT LEAST("w3Schools.com", "microsoft.com", "apple.com");
returns "apple.com"
GREATEST works exactly the same but returns the greatest value of the list of argument
As of today, Alteryx proposes max and min to deal with that, but it only works with number and , I think, it's an ambiguous syntax : Max and Min works both as an aggregation function and as a row function. I love to separate these two notions.
Having a more standard means also more interoperability.
On a related topic, the coalesce function is proposed here : https://community.alteryx.com/t5/Alteryx-Designer-Ideas/Coalesce-function/idi-p/841014
Best regards,
Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.