can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / prasad237
with x as(select row_number over(order by sal desc) as rid,* from emp)
select * from x where rid=n
we can retrieve nth max sal
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does a server store data?
Name three of the features managed by the surface area configuration tool? : sql server security
What are the advantages dts has over bcp?
Difference between aggregate functions of sql?
What is public role in sql server?
Explain something about security and SQL Azure?
What are the types of dml?
what is difference between NULL and ISNULL in SQL Server 2008?
Define Business Edition in SQL Azure?
What are the advantages of passing name-value pairs as parameters?
Is sql server free?
What is the library index called?
What are the difference between clustered and a non-clustered index?
What is temporary table in sql server? Why we use temp table?
What is the report builder?