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
Which Model uses the SET concept
What are the security related catalog views? : sql server security
How to rebuild master databse?
How are the exceptions handled in sql server programming?
How do you delete duplicate records in sql server?
How to create hyperlink from returned sql query ?
Can you explain about buffer cash and log cache in sql server?
What is sql server schema compare? How we can compare two database schemas?
What are triggers? How do you invoke a trigger on demand?
What is order of B+tree?
Define magic tables in sql server?
Explain different types of lock modes in sql server 2000?
Can you explain different types of joins?
When do you think a developer should use sql server-based cursors?
What are the properties of sub-query?