How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / prathapshankarshiva

select max(salary) from (select salary from table1 where
salary<(select max(salary) from table1))

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between stored procedure and the dynamic sql?

584


Why use view instead of a table?

521


What is application role in sql server database security? : sql server security

554


Can sub report data source be different from that of the parent report?

105


How many clustered indexes there can be on table ?

602






explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

1984


What are the characteristics of modern DBMS?

624


How to list all dsn entries on your local machine using odbc_data_source()?

557


what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

531


What are four major operators that can be used to combine conditions on a where clause?

595


Please illustrate physical database architecture? : SQL Server Architecture

534


What is advantage data architect?

511


What is view in sql?

562


how you can configure a running aggregate in SSRS?

112


Tell me what is the difference between locking and multi-versioning?

579