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 / rajkishore bagwan

simplest method ----
select salary
from employees
order by salary desc
offset n-1 rows fetch next 1 rows only
(replace n with any number it will give you the nth highest salary)

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 the difference between syntax error and runtime error?

1138


What does the hierarchical profiler does?

1057


How long it takes to learn pl sql?

1010


how to create a table index in mysql? : Sql dba

1059


What is a dynamic query?

1019


Are pl sql variables case sensitive?

1045


What is a parameter query?

1076


Is coalesce faster than isnull?

966


What are pl/sql cursor exceptions?

1101


how to check myisam tables for errors? : Sql dba

1320


What is the difference between delete and truncate commands?

1036


What is clustered index in sql?

1051


What is flag in sql?

1031


What is graph sql?

986


What is difference between procedure and trigger?

977