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

What is the size of partition table?

990


How to check if a column is nullable before setting to nullable?

1055


What is sql performance tuning?

866


how to show all tables with 'mysql'? : Sql dba

1058


How do I run a script in sql developer?

898


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

969


Is it important to partition hard disk?

964


Why do we need sharding?

936


Can there be 2 primary keys in a table?

951


Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

1112


what are ddl statements in mysql? : Sql dba

1111


what is the difference between $message and $$message? : Sql dba

943


What are different joins used in sql?

1007


How do I view a procedure in sql?

907


what is a primary key? : Sql dba

981