Jozef Kutej <[EMAIL PROTECTED]> wrote: > mysql Ver 12.20 Distrib 4.0.13, for pc-linux (i686) > > Is this behavior OK? > > mysql> select Sort FROM Bookmark where (UID='2' AND Up='0'); > +------+ > | Sort | > +------+ > | 1 | > | 1 | > | 2 | > | 3 | > | 4 | > | 5 | > | 6 | > | 8 | > | 9 | > | 10 | > | 11 | > | 12 | > | 13 | > +------+ > 13 rows in set (0.02 sec) > > mysql> select max(Sort) FROM Bookmark where UID='2' AND Up='0'; > +-----------+ > | max(Sort) | > +-----------+ > | NULL | > +-----------+ > 1 row in set (0.00 sec) >
Hmm .. Worked fine on my test table. Could you provide a test case? -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]