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 calcuate the second highest salary of he employee

Answer Posted / vinayak jamdar

Select top 1 empid,salary from (select distinct top 2
empid,salary from emp order by salary desc)a order by salary

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How sql query is executed?

1069


Why is there a need for sqlcode and sqlerrm variables?

999


Is and as keyword in pl sql?

908


What is data abstraction in sql?

969


What are the ddl commands?

951


How do you concatenate in sql?

975


What is the difference between a subquery and a join?

1014


What do you understand by case manipulation functions?

954


How is indexing done in search engines?

930


Explain the difference between triggers and constraints?

921


What are variables in pl sql?

1094


What is difference between table and view?

979


Is left join and outer join same?

1006


What is sql server and ase?

978


What is the use of pl/sql table?

999