Bernandas Savarimuthu
SQL & PL/SQL Colletions
Tuesday, October 21, 2008
Top N Salaries
SQL>
Select
rownum
as Rank,
ename
,
sal
from (select
ename
,
sal
from
emp
order by
sal
desc
)
where
rownum
<=3
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment