In excel we can find the max. and min. value of a row by ignoring the blank column like this picture
In mysql database, I have a table with 3 fields, and data types of each field is float. By using the greatest and least function, I intend to find the max. and min. values for each row. But the result is
The results in excel and in mysql are different, because in excel we can empty the column, but in mysql (with float data type), the empty column will change to 0.
If the column contains NULL, the result is as follows
Question : Is there a way to make 0 or NULL value in mysql read as empty column?