|
| Total Answers and Comments: 5 |
Last Update: October 15, 2008 Asked by: kowmudiswarna |
|
| | |
|
Submitted by: vanigreat
select a.empno,a.ename,a.sal from scott.emp a where a.sal in
(select sal from scott.emp group by sal having count(*)>1)
Above answer was rated as good by the following members: spohilko, sureshkumar.mtech, harit79 | |
October 15, 2008 07:50:14 | #5 |
| sureshkumar.mtech |
|
Member Since: May 2008 Contribution: 37 |
RE: Write a query to display employee records having same salary?
| SQL> select distinct e.name e.salary from employe e employe a 2 where e.salary a.salary and e.name ! a.name; NAME SALARY ---------- ---------- MANI 10000 SELVAM 10000 SURAJ 10000 KAMAL 20000 RAMESH 20000 SARA 20000 6 rows selected. |  | | Is this answer useful? Yes | No | 1 0 | Overall Rating: +1 |
|
| |
Go To Top
|