It is necessary to choose the minimum value from the field, but if it turns out that it is equal to 0, then you need to take the following value ... Ie if a simple sample returns for example the numbers 13, 34, 5, 0, 89 - I need to get 5, and if a simple sample returns all rows in which only zeros, then I need to return 0 ...
thank
where val > 0problematic? - teran