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 / nitin umale

SELECT *
FROM employees
WHERE salary =
( SELECT MIN ( r.salary)
FROM ( SELECT salary
FROM ( SELECT DISTINCT salary
FROM employees
ORDER BY NVL(salary,0) DESC
)
WHERE rownum<3) r
);

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we solve sql error: ora-00904: invalid identifier?

1293


When sql appeared?

1148


What are tables in sql?

1115


What is the difference between partitioning and sharding?

1050


what are the nonstandard string types? : Sql dba

1205


Explain the uses of a database trigger?

1086


How to write html code in pl sql?

1159


Which kind of parameters cannot have a default value in pl sql?

1210


What does trigger mean in slang?

1123


How do you delete a table?

1124


What is data type in sql?

1004


how many ways we can we find the current date using mysql? : Sql dba

1144


What is a call statement? Explain with an example.

1069


What are sql*plus environment variables?

1155


What is update query?

1031