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 / kasiraya

SELECT SALARY
FROM
(
SELECT ROW_NUMBER() OVER( ORDER BY SALARY DESC) AS
SL_NO,SALARY
FROM EMP
ORDER BY SALARY DESC
)
WHERE SL_NO=2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is indexing done in search engines?

980


What is the usage of distinct keyword?

1061


What is the primary key?

949


Can we write ddl statements in functions?

1111


What is sql dialect?

1112


What is nosql db?

964


What is the advantage of index in sql?

968


Is sqlite thread safe?

1043


What is sql deadlock?

1131


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

997


What is the difference between delete and truncate commands?

1032


Is json a nosql?

975


How to move files from one directory to another in pl sql?

1190


How do you delete data from a table?

1025


What is thread join () in threading?

1005