sql help [message #216771] |
Tue, 30 January 2007 05:48 |
pavuluri
Messages: 247 Registered: January 2007
|
Senior Member |
|
|
hi
plz help me
i have
one table like emp
empno deptno sal
siva 20 3000
srinu 20 3000
ravi 20 4000
ravi 30 1000
kavi 30 2000
rama 30 2000
sasi 10 3000
kalyan 10 4000
deepak 10 4000
i would like the result
empno deptno sal
siva 20 3000
ravi 20 4000
ravi 30 1000
kavi 30 2000
kalyan 10 4000
send me query to find out top 3 distinct salaries for each
department
note: i need deptno,ename,sal
Thanks
srinivas
|
|
|
|
Re: sql help [message #216778 is a reply to message #216775] |
Tue, 30 January 2007 06:10 |
pavuluri
Messages: 247 Registered: January 2007
|
Senior Member |
|
|
ename deptno sal
siva 20 3000
srinu 20 3000
ravi 20 4000
ravi 30 1000
kavi 30 2000
rama 30 2000
sasi 10 3000
kalyan 10 4000
deepak 10 4000
i would like the result
ename deptno sal
siva 20 3000
ravi 20 4000
ravi 30 1000
kavi 30 2000
sasi 10 3000
kalyan 10 4000
|
|
|
|