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

Why do you partition data?

1066


What is the reports view in oracle sql developer?

1045


How many joins can you have in sql?

988


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1285


What is a join query?

1007


What is substitution variable?

1098


who introduced sql?

1074


Why do we need unique key in a table?

1008


what are all the different normalizations? : Sql dba

1122


What are the types of variable use in pl sql?

1138


What type of database is cloud sql?

1160


how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba

999


What is the max nvarchar size?

1031


How to execute a stored procedure?

1162


how to convert numeric values to character strings? : Sql dba

1162