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 from emp table?

Answer Posted / barochia dharmesh

select Income from (
select Rank() over(order by Income desc) topRecord, Income
from (select distinct Income from tblName) tbl ) tbl2
where topRecord = 2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain select statements in sql?

1107


What is normalisation in sql?

1100


How do you declare a variable in pl sql?

1071


Why is %isopen always false for an implicit cursor?

1153


how to convert dates to character strings? : Sql dba

1253


Can a commit statement be executed as part of a trigger?

1105


what are the advantages of using stored procedures? : Sql dba

1157


What is the difference between joins?

1094


what are the different type of normalization? : Sql dba

1072


What is the life of an sql statement?

1076


What is the difference between partition and index?

1062


what is innodb? : Sql dba

1172


how to include numeric values in sql statements? : Sql dba

1149


What is server name sql?

1208


Can we rollback after truncate?

1073