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 / esakki

select max(salary) from employee where salary not in (select
top 1 salary from employee order by salary desc )


change 1 to 2,3,4,......like that for 3rd max ,4th max
salary.....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1120


What are different types of functions in sql?

1010


What is the difference among union, minus and intersect?

1009


what are sequences

1756


What is cross join sql?

926


How would you reference column values before and after you have inserted and deleted triggers?

1070


What is dense_rank in sql?

997


How do you respond to dementia behavior?

975


Define select, insert, create, delete, update, drop keywords

1056


What is data control language (dcl)?

1149


What is a full join sql?

1063


what is column? : Sql dba

1014


what are the nonstandard string types? : Sql dba

1147


What are character functions in sql?

944


Which is better cte or subquery?

1035