根据你想查的结果来看应该是这样的:select A,min(B) from tablename group by A;
select A,max(B) from 表名 group by A
select A,max(B) from tablename group by A;
那你的保证你的条件是唯一的