Shaalini
Share your Knowledge in c#,Silverlight,.net
Monday, December 1, 2008
Find Top second salary in sql
Hi,
Here is the query to find the 1,2,3,4.. nth highest salary
Select Top
1
salary
from (
select Distinct top
3 salary
from
Employee
Order By
Salary
desc
)
as
a
order by
salary
asc
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment