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

How do I copy a table in sql?

995


What do you understand by pl/sql records?

1024


How can you know that statistics should be updated?

1080


what is the difference between a having clause and a where clause? : Sql dba

1091


Can %notfound return null after a fetch?

1063


What are pl/sql cursor exceptions?

1110


How do you create a db file?

1020


How delete a row in sql?

998


Difference between truncate, delete and drop commands?

1087


How is a process of pl/sql compiled?

1166


Explain dml and ddl?

1004


Why do we create views in sql?

1156


Can we connect to postgresql using sql developer?

1011


What is lexical units in pl sql?

1153


How to write html code in pl sql?

1119