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 / vikas

select top 1 salary from emp
where salary in (select top 2 salary from emp order by salary desc)order by salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of index are there?

1044


Mention what is the plv (pl/vision) package offers?

1107


Which join is like an inner join?

1029


What do you mean by table in sql?

996


Why functions are used in sql?

996


What is sqlcontext?

1087


How can you tell the difference between an index and a view?

937


What is mdb stand for?

1012


how to run 'mysql' commands from a batch file? : Sql dba

1121


Can ddl statements be used in pl/sql?

1146


What are the topics in pl sql?

974


Why is pl sql needed?

952


What is integrity in sql?

1051


Why is a primary key important?

1049


What is procedure function?

1066