日期:2014-05-16 浏览次数:20563 次
SQL> select ename,sal from emp where sal in (select sal from (select count(*) as sals ,sal from emp group by sal) where sals>=2); ENAME SAL ---------- --------- MARTIN 1250.00 WARD 1250.00 zhulei%l 10000.00 zhulei 10000.00 FORD 3000.00 SCOTT 3000.00 6 rows selected
?下面有所要查询的sql包