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 / amarendra swain

select max(sal) from employee
where sal not in (select max(sal) from employee )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you have a foreign key without a primary key?

1000


How do you declare a user-defined exception?

1077


What is clustered index in sql?

1101


What is the use of sql trace?

1006


Can you have more than one trigger on a table?

1047


Which one is better subquery or joins?

1118


What is a database trigger?

1138


Explain spool.

1219


How do I find duplicates in a single column in sql?

1070


what are rollup and cube in t-sql? : Transact sql

1151


What is denormalization in a database?

1107


What is keys and its types?

1123


how to fetch common records from two tables? : Sql dba

1253


Can you load data into multiple tables at once? : aql loader

1120


What are all the different types of indexes?

1198