---------------------------查找最大值-------------------------------------
SELECT T.*
FROM JO_USER T
WHERE T.LOGIN_COUNT = (SELECT MAX(T.LOGIN_COUNT) FROM JO_USER T);
---------------------------查找最小值-------------------------------------
SELECT T.*
FROM JO_USER T
WHERE T.LOGIN_COUNT = (SELECT MIN(T.LOGIN_COUNT) FROM JO_USER T);
原文:http://www.cnblogs.com/leeliwenBlog/p/6369297.html