can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / naufal basheer

select e.* from
(select row_number() over (order by salary desc) as Rno,*
from employee)e
where e.Rno = 2

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?

607


Are connections to sql server encrypted?

562


What are transactions and its controls?

602


Write a sql query to delete duplicate records from a table called table1

570


How to recompile stored procedure at run time?

558






What are the types of sql server?

507


What is collation sensitivity?

539


What is ms sql server index?

551


In case you have filters in your report, when filters will be applied in cached report instance?

77


What is scd (slowly changing dimension)? : sql server analysis services, ssas

580


What options are available to audit login activity? : sql server security

619


Explain why variables called the most powerful component of ssis?

517


How many triggers you can have on a table?

519


What are the advantages of using third-party tools?

535


How to list all user defined functions in the current database?

503