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 fifth highest salary?

Answer Posted / chandra shekhar

Assuming that EMP table with Sal column

SELECT MIN(sal) FROM
(SELECT DISTINCT sal FROM emp WHERE
ROWNUM < 6
ORDER BY sal DESC )

- If fifth highest then ROWNUM < 6
- If n'th highest then ROWNUM < n+1

Regards
J

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the unary operations in Relational Algebra?

851


What are the primitive operations common to all record management systems?

990


What is master database? : sql server architect

887


What is database architecture?

709


Explain about the return statement?

885


What is parallel database architecture?

846


What is E-R model?

890


What is tier in database?

811


How can we call stored procedures inside store procedures?

835


What is a checkpoint and When does it occur?

786


Describe the three levels of data abstraction?

884


What is the difference between a user defined function and a stored procedure?

876


Name the buffer in which all the commands that are typed in are stored

818


What do you mean by atomicity and aggregation?

912


What is system catalog or catalog relation? How is better known as?

858