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 largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / saikrishna reddy .k

To find second highest salary
select max(sal) from emp where sal not in (select max(sal)
from emp)

to find order
select top 5 8 from emp order by sal desc

Is This Answer Correct ?    30 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between primary key and foreign key?

910


Can we write ddl in trigger?

923


How efficient you are in oracle and SQL server?

1164


What is acid properties?

1109


Explain the use of containers in ssis and also their types?

970


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

990


Can an automatic recovery be initiated by a user?

1020


What is identity?

1025


Explain how would you store your query in an SSRS report or a Database server?

129


How except clause is differs from not in clause?

960


Explain about sql server login?

1093


What is the difference between lock, block and deadlock? : sql server database administration

1056


Do you know what is blocking?

968


Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

911


Define primary key?

1143