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

select salary from emp
where salary = (select max(salary) from emp
where salary <>(select max(salary) from emp)

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use pragma autonomous_transaction in trigger?

906


Explain about merge replications?

963


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

911


What are the benefits and tasks of object explorer? : sql server management studio

1113


What is subreport?

129


What is scrollable cursor?

981


I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible

2179


Can we add an identity column to decimal datatype?

941


What are the new features are introduced in sql server 2012 reporting services?

143


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

919


How to execute the cursor queries with "open" statements?

1093


what is a deadlock? : Sql server database administration

978


How to list all user names in a database?

1001


How to throw custom exception in Stored Procedure?

989


Why use update_statistics command in sql server?

995