问题:查找某个列中值的模式(数学中的模式概念就是对于给定的数据集出现最频繁的元素)。例如,查找DEPTNO 20中工资模式。例如下列工资:
select sal from empwhere deptno = 20group by salhaving count(*) >=all (select count(*) from empwhere deptno =20 group by sal);