首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 查询列值雷同其他信息的信息

2012-08-26 
oracle 查询列值相同其他信息的信息SQL select ename,sal from emp where sal in (select sal from (sele

oracle 查询列值相同其他信息的信息

 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.00WARD         1250.00zhulei%l    10000.00zhulei      10000.00FORD         3000.00SCOTT        3000.00 6 rows selected

?下面有所要查询的sql包

热点排行