📅  最后修改于: 2022-03-11 15:00:43.731000             🧑  作者: Mango
postgres=# select deptno,max(sal) from emp group by deptno order by max(sal);
deptno | max
--------+---------
30 | 2850.00
20 | 3000.00
10 | 5000.00
(3 rows)