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 only %th Highest Sal

Answer Posted / ajit

select e.*, rn
from ( select empno, ename, sal, deptno, dense_rank() over ( order by sal desc ) rn
from emp) e
where rn = & rn;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between sum and count in sql?

938


What are all ddl commands?

1015


How do you concatenate in sql?

975


What is offset in sql query?

1073


Is sql scripting language?

975


Why should I use postgresql?

973


Is sqlite thread safe?

993


How do you clear the screen in sql?

1012


Why procedure is used in sql?

977


what are date and time functions in mysql? : Sql dba

927


Is merge a dml statement?

924


Define implicit and explicit cursors.

1076


Why commit is not used in triggers?

994


What's the difference between a primary key and a clustered index?

947


How do you determine the current isolation level? : Transact sql

1075