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 / krishna kishore

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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is integrity in sql?

1051


Why cross join is used?

1083


What is the limitation on the block size of pl/sql?

988


What is pl/sql table? Why it is used?

1039


What is full join?

961


Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?

1103


How do I find sql profiler?

946


What is the difference between execution of triggers and stored procedures?

1118


The in operator may be used if you know the exact value you want to return for at least one of the columns.

1136


What is varchar sql?

1150


Why do we use set serveroutput on?

969


what is the command line end user interface - mysql? : Sql dba

984


Is sql procedural language?

970


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

1121


What will you get by the cursor attribute sql%notfound?

1080