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: Nikhil: "can a column be named as a variable?"
- In reply to: MUSTAFA: "Re: 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 20:47:54 +0530
try query as shown in following example:
create table test (id int)
insert into test values (1033)
insert into test values (2093)
insert into test values (2323)
insert into test values (2323)
insert into test values (45534)
--query
select *
from test a
where
(select count(distinct id) from test b where b.id <= a.id) = 3
-- Vishal Parkar vgparkar@yahoo.co.in | vgparkar@hotmail.com
- Next message: Vishal Parkar: "Re: getting sum of units sold in preceeding weeks"
- Previous message: Nikhil: "can a column be named as a variable?"
- In reply to: MUSTAFA: "Re: Third largest salary"
- Next in thread: MUSTAFA: "Re: Third largest salary"
- Reply: MUSTAFA: "Re: Third largest salary"
- Messages sorted by: [ date ] [ thread ]