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 check the 3rd max salary from an employee table?

Answer Posted / b.v.siva kumar

Use this for SQL Server:

select top 1 salary from emp where salary in (select
distinct top 3 salary from emp order by salary desc) order
by salary

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is procedure function?

1126


How do I run a pl sql program?

1193


Can a select statement fire a trigger?

1211


What are the two types of exceptions in pl/sql?

1093


Explain the methods used to protect source code of pl/sql.

1074


What is an inconsistent dependency?

1087


Explain the structure of pl/sql in brief.

1142


What is a common use of group by in sql?

1100


What is the difference between database trigger and stored procedure?

1144


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

1078


Does db2 use sql?

1011


what is sql server agent? : Sql dba

1158


What is a subquery in sql?

1091


what is bdb (berkeleydb)? : Sql dba

1093


Explain normalization and what are the advantages of it?

1003