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 salary?

Answer Posted / vamsi krishna

For 2nd maximum salary
select Max(sal) from EMP a where 2=(select COUNT(distinct(sal)) from EMP b where a.SAL<=b.SAL);

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql azure database?

206


What is the primary use of the model database?

1069


What is partition index in sql server?

1100


What new data source types were added in ssrs 2014?

160


How to create database with physical files specified in ms sql server?

980


What is precedence constraint?

968


What is the template in sql?

964


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1571


What is sql injection? How to protect against sql injection attack?

980


What are the different Topologies in which Replication can be configured?

1169


How to connect Azure federated root database and apply federation in entity framework?

107


What is set nocount on and what is set nocount off?

928


Difference between Logical Page and Physical Page in SSRS.

474


how can a database be repaired? : Sql server administration

957


How to manipulate data from one table to another table ?

958