RE: Help ...learning SQL
From: Richard Hu <richu_at_msn.com>
Date: 1996/08/10
Message-ID: <00001a1b+00007d0c_at_msn.com>#1/1
Date: 1996/08/10
Message-ID: <00001a1b+00007d0c_at_msn.com>#1/1
>Please help solve the following queries:-
>1) Find the nth max(sal) in a table.
>2)List the ename,sal of top n number of people.
>Thanks in advance.
>Sharon.
select ename, sal from <table>
where rownum < <top#>
order by sal desc
Ric Received on Sat Aug 10 1996 - 00:00:00 CEST