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

select max(sal)from emp where sal in(select sal from emp minus select max(sal) from emp);

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 information schema in sql?

1118


How do I run a pl sql procedure in sql developer?

1022


What is scalar and vector?

1062


How to get unique records from a table?

1024


what is a tablespace? : Sql dba

1102


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1228


What are the 3 modes of parameter?

1208


Can we create foreign key without primary key?

1040


Explain locks? : Transact sql

1058


How do you declare a user-defined exception?

1076


What do you understand by case manipulation functions?

1081


What operators deal with null?

1156


how to include comments in sql statements? : Sql dba

999


What packages(if any) has oracle provided for use by developers?

5883


What is linq to sql?

1180