Re: Third largest salary
From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 05/11/04
- Next message: Vishal Parkar: "Re: getting sum of units sold in preceeding weeks"
- Previous message: mustafa: "Third largest salary"
- In reply to: mustafa: "Third largest salary"
- Next in thread: MUSTAFA: "Re: Third largest salary"
- Reply: MUSTAFA: "Re: Third largest salary"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 May 2004 15:10:36 +0530
hi mustafa,
try something as:
select *
from <table> a
where
(select count(distinct salary_column) from <table> b where b.salary_column
>= a.salary_column) = 3
replace column name and table name in above query
--
Vishal Parkar
vgparkar@yahoo.co.in | vgparkar@hotmail.com
"mustafa" <mustafakh@yahoo.com> wrote in message
news:b2ea01c43736$69aca3e0$a601280a@phx.gbl...
> Dear Sir
>
> I want to retrive data that will return 3rd largest salary
> paid employee from employee table using sql query.
>
> thanks
- Next message: Vishal Parkar: "Re: getting sum of units sold in preceeding weeks"
- Previous message: mustafa: "Third largest salary"
- In reply to: mustafa: "Third largest salary"
- Next in thread: MUSTAFA: "Re: Third largest salary"
- Reply: MUSTAFA: "Re: Third largest salary"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|