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

What is a parameter query?

1144


Which join is default?

1017


What are triggers and its types?

1121


Why do we create stored procedures & functions in pl/sql and how are they different?

995


What is percent sign in sql?

1328


How to make a copy values from one column to another in sql?

1084


Can I create table without primary key?

1045


How to get help at the sql prompt?

1166


Explain about various levels of constraint.

1000


Can we call procedure in select statement?

1113


What is meant by <> in sql?

1030


What is crud diagram?

994


Define join and name different types of joins?

1057


Can a foreign key have a different name?

999


What is memory optimized?

1135