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
Mention the command used to rename the database.
Can foreign key be duplicate?
What do you know about normalization and de- normalization?
How to create an identity column?
What is the difference between push and pull subscription? : sql server replication
What command is used to rename the database?
How to connect php with different port numbers?
What is Federation and Federation Member?
What is the maximum rows in sql server table?
What command do we use to rename a database?
List few advantages of stored procedure.
Why union all is faster than union?
What is difference between oltp and olap?
What is the name of the Database which IBM mainframe uses?
What is a not null constraint?