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

What is a stored procedure in sql with example?

1204


What is the difference between union and union all command?

1151


What does inner join mean?

1265


Does varchar need length?

1050


How does sql profiler work?

1065


What is a dynamic query?

1073


Is natural join same as inner join?

987


What are the commands used in sql?

1136


Can we use join in subquery?

1151


How many sql statements are used?

1073


What is user in sql?

1078


How can triggers be used for the table auditing?

1119


What is sql basics?

1083


When you have to use a default "rollback to" savepoint of plvlog?

1252


Which is faster union or join?

1027