I am trying to fetch the minimum value of a column in MySQL using the MIN function. But is it possible to tell MySQL to ignore the zero values? Problem is that
MIN
The correct answer for you is:
IFNULL(MIN(NULLIF(value, 0)), 0)
While ISNULL not working.
ISNULL