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 do you identify a primary key?

1117


What is the difference between database trigger and stored procedure?

1147


Does oracle use sql?

995


What is percent sign in sql?

1331


how to extract a unit value from a date and time? : Sql dba

1047


What are character functions?

1143


What are sql queries used for?

1083


Mention what plvcmt and plvrb does in pl/sql?

1204


Can a foreign key have a different name?

1001


Why indexing is needed?

1048


What is case function?

1096


Explain ttitle and btitle.

1167


Is hadoop a nosql?

1055


How do you bind variables in pl sql?

1167


What is embedded sql in db2?

1066