Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / swapnil tikale

Select top 1 salary from (select distinct top 2 salary from employee order by salary desc) as sal order by salary ;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary key and unique key?

542


What are character functions?

628


what is offset-fetch filter in tsql? : Transact sql

530


Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

1721


Is sql difficult?

743






What is the use of non clustered index?

526


How to install oracle sql developer?

565


What are the types of variable use in pl sql?

563


How does one use sql*loader to load images, sound clips and documents? : aql loader

668


What is rank function in sql?

530


Can we call stored procedure in function?

548


Can we join two tables without common column?

512


what is unique key constraint? : Sql dba

564


What is the difference between left and left outer join?

513


How many types of triggers exist in pl/sql?

561