Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 21194 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > SQL Server > SECOND LARGEST SALARY OF AN EMPLOYEE ...
CGN007

SECOND LARGEST SALARY OF AN EMPLOYEE

 Code Snippet posted by: CGN007 | Posted on: 5/30/2012 | Category: SQL Server Codes | Views: 444 | Status: [Member] | Points: 40 | Alert Moderator   
Ads

SELECT MAX(emp_salary) FROM employee WHERE emp_salary<(SELECT MAX(emp_salary) FROM employee)

Found interesting? Add this to:


 Responses

Ras90it
Posted by: Ras90it | Posted on: 5/30/2012 | Level: Starter | Status: [Member] | Points: 10 | Alert Moderator 

Here which is table name ? and what is emp_salary & employee ???
give the Syntax of this command
plz explain, waiting for ur reply...

by

Raseeth.A

>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/20/2013 3:21:43 AM