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...

Find out the 3rd highest salary?

Answer Posted / priyanga.g

1) Select MAX(salary) from Programmer where salary not
in(select top 2 salary from Programmer order by salary desc)



2) Select max(salary) from programmer where salary<
(select MAX(salary) from Programmer where salary<(select
MAX(salary) from Programmer))


3) Select MAX(salary) from Programmer e where 2=(select
COUNT(*) from programmer b where b.salary>e.salary )

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a temp table?

960


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

930


Write a query to display the current date in sql?

979


What is the usage of sql functions?

1096


What is scope of pl sql developer in future?

969


How do I view a table in sql?

967


How to display the current date in sql?

1024


Why do we need view in sql?

948


what are the types of subquery? : Sql dba

1064


how to convert dates to character strings? : Sql dba

1103


What is orm in sql?

1006


What is the difference between instead of trigger and after trigger?

966


What is exception? What are the types of exceptions?

1044


What does select * from mean in sql?

3100


Who is the owner of mysql database?

1014