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

How do I run a pl sql procedure in sql developer?

518


Can one improve the performance of sql*loader? : aql loader

587


How many sql are there?

522


How to make a copy values from one column to another in sql?

582


Is there a way to automate sql execution from the command-line, batch job or shell script?

560






how can we destroy the session, how can we unset the variable of a session? : Sql dba

554


define data blocks ? : Sql dba

552


What are local and global Indexes and where they are useful.

932


How do you truncate?

507


How do you use collections in procedure to return the resultset?

1793


What is insert command in sql?

530


What type of database is sql?

617


What is the use of non clustered index?

530


Which is better cte or subquery?

547


What is dml and ddl?

527