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
What is microsoft sql server?
Explain where clause?
How to resolve the orphan use problem? : sql server security
What are sql servers used for?
Can an entity have two primary keys?
What do you mean by data manipulation language?
Define views.
Can sub report data source be different from that of the parent report?
What are binary string data types in ms sql server?
What is the security principal at the server level that represents your session?
Does partitioning improve performance?
What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?
What are different types of join?
between cast and convert which function would you prefer and why?
What are horizontal and vertical scaling?