On Fri, Dec 3, 2010 at 12:50 PM, Mark Goodge <m...@good-stuff.co.uk> wrote:
> Given a table containing a range of INT values, is there any easy way to
> select from it the lowest non-zero number?
>

SELECT number FROM table WHERE number > 0 ORDER BY number ASC LIMIT 1;

?
-- 
Paul Halliday
Ideation | Individualization | Learner | Achiever | Analytical
http://www.pintumbler.org

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=arch...@jab.org

Reply via email to