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

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

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 mutating error in pl sql?

1028


How do I run a script in sql developer?

955


Explain about various levels of constraint.

950


What is bind reference and how can it be created?

1025


Why do we need view in sql?

991


How do I edit a stored procedure?

998


What is tuple in sql?

1087


How do I find duplicates in sql?

937


What is cursor in pl sql with examples?

1036


What is output spooling in sql*plus?

1041


Can sql function call stored procedure?

1028


explain commit and rollback in mysql : sql dba

1025


How does postgresql compare to oracle/db2/ms sql server/informix?

1039


how to select first 5 records from a table? : Sql dba

982


What is null in pl/sql?

1077