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 in a given table????

Answer Posted / mahesh

SELECT *
FROM (SELECT ROWNUM sl, salary
FROM (SELECT DISTINCT salary
FROM employees
ORDER BY salary))
WHERE sl = n

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sharded cluster?

1019


Explain coalesce function?

1210


How to store pictures on to the database?

980


How to define an external table with a text file?

1076


How to calculate date and time differences in oracle?

1045


Explain the different normalization forms?

1111


What do you mean by redo log file mirroring?

1037


what are actual and formal parameters?

1107


What is ordinary table in oracle?

1163


What is object data modeling?

970


How to resolve name conflicts between variables and columns?

1035


What are the differences between lov and list item?

1074


Where is the export dump file located?

1163


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

2270


What is the relation of a user account and a schema?

1134