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 get second highest salary in SQL(as/4000

Answer Posted / tauseef

select last_name,salary from(
select last_name,salary ,rownum rk from(
select distinct salary,last_name from employees order by
salary desc nulls last))
where rk=9


By this way u can find 2nd,3rd n nth highest salary wit the
name

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 sp_helptext?

1005


How do I view a sql database?

985


How many tables can a sql database have?

927


What does closing a cursor do?

1247


What does where 1 1 mean in sql?

981


how to select unique records from a table? : Sql dba

1058


What does truncate mean in sql?

964


What is a Mapplet?

1057


Does mysql_real_escape_string prevent sql injection?

910


What is difference between nchar and nvarchar?

958


Is big data nosql?

888


Is sql workbench free?

932


How is indexing done in search engines?

930


Is id a reserved word in sql?

1093


what is a database lock ? : Sql dba

1093