答案 0 :(得分:1)
select name, max(count)
from your_table
group by name
limit 1;
dbfiddle here
答案 1 :(得分:0)
您可以使用聚合函数max()并在group by中添加其他非聚合列。
Select name, max(count) as 'Maximum_count'
from tablename
Group by name
Limit 1;
或
Select name, max(count) as 'Maximum_count'
from tablename
Group by name
order by Maximum_count desc
fetch first 1 row only
答案 2 :(得分:0)
首先获取子选择中count的最大值,然后选择具有该最大值的所有行(在您的情况下只有一个)
cd /my_folder && \
rm *.jar && \
svn co path to repo && \
mvn compile package install