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 / moorthy t

select n,* from(select rownum n,* from (select * from table
where group by (sal) order by (sal) desc)) where n=2;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain full-text indexing?

993


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

930


What are the operating modes in which database mirroring runs?

1092


What can be used instead of trigger?

1159


What is the full meaning of dml?

955


How do I create a trace in sql server?

1051


How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?

1200


What is the difference RDBMS and Graph Database?

1054


Write a SQL command to insert and update only a particular field?

1119


How to recompile stored procedure at run time?

1078


Define outer join?

1004


Write a SQL queries on Self Join and Inner Join.

1050


What are sub reports and how to create them?

140


What is sql server 2000 work load governor?

1073


Does sql server 2016 have ssms?

966