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

Answer Posted / rajesh.m

Crete Table Curtest(Emp char(40),salary money)
------------------------------------------------
Select Min(Salary) from Curtest where Salary
in (select Top 2 Salary from Curtest)

--------------------------------------------------

Is This Answer Correct ?    21 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a distributed database system, can we execute two queries simultaneously?

573


Which are sql * plus commands?

541


What are the different sql commands?

525


What is composite primary key in sql?

524


What is the life of an sql statement?

527






What is integrity in sql?

562


What is sqlcommand?

558


What is native sql query?

554


What is the use of pl/sql table?

559


What do we need to check in database testing?

561


Explian rowid, rownum?

566


what are the advantages and disadvantages of cascading style sheets? : Sql dba

556


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

572


What is cold data?

507


What is normalization sql?

513