Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the second highest salary from emp table?

Answer Posted / anandaraj

This below query is used to get the name and salary of
second highest salary person. Its work great.

select Name, Salary from table_3 where salary = (select max
(salary) from table_3 where salary < (select max(salary)
from table_3 )).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a table have no primary key?

1059


what are the different functions in sorting an array? : Sql dba

1014


what is rdbms? : Sql dba

1012


What is sqlcommand?

1026


What are character functions?

1084


What is the basic structure of an sql?

1098


what is the difference between char and varchar data types? : Sql dba

1101


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

1031


What is the usage of sql functions?

1144


How do I turn a list into a table?

958


What is set serveroutput on?

1132


what is a database transaction? : Sql dba

1172


Are null values same as that of zero or a blank space?

1026


What are the types of functions in sql?

1015


Can you call pl/sql package functions from within a fast formula?

1037