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 / abhishek jaiswal

select salary from employees a where &nth_highest_salary =(select count(distinct salary)
from employees b where a.salary<=b.salary)
/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to take user input in pl sql?

1167


What is Materialized View? In What Scenario we Use Materialized View?

9522


What are the string functions in sql?

980


What is sql engine in oracle?

994


What is the least restrictive isolation level? : Transact sql

1070


How can we link a sql database to an existing android app?

1033


what is oracle database ? : Sql dba

1035


What are % type and % rowtype?

1035


What is a pl/sql block?

1234


What is normalization in sql?

1017


What are the three forms of normalization?

1046


What is union, minus and interact commands?

1300


What is execute immediate?

1088


How to use sql statements in pl/sql?

1127


Is mariadb a nosql database?

1056