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 find the second highest salary from emp table?

Answer Posted / amy

select TOP salary from employee where salary in( select TOP 2 salary from employee order by salary desc) order by salary asc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to delete a package?

1089


Can we create index on primary key?

913


What are the types of subqueries?

1014


Can a select statement fire a trigger?

1096


What is the difference between union and union all command?

1006


What are literals in sql server?

1070


What is sequence in sql?

937


When should I use nosql database?

943


Mention what plvcmt and plvrb does in pl/sql?

1061


What is sql engine in oracle?

926


Is merge a dml statement?

921


Can we perform dml on view?

974


What is compute?

1010


what is a trigger? : Sql dba

973


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

1039