Wrox Programmer Forums
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2004, 02:07 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sqlquery plz

how to retrieve a second max sal in a table of emp
thank u

 
Old March 21st, 2004, 05:18 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

select max(column1), max(column2) from table...

Is this what you are looking for? If not, please provide us with more information.
 
Old March 22nd, 2004, 10:37 AM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Select max(employeeid) from employees where employeeid != (Select max(employeeid) from employees)

Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team
 
Old August 3rd, 2004, 12:28 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to bodhibrata
Default

select max(Invoice_Amount) from Invoice where Invoice_Amount < (select max(Invoice_Amount) from Invoice)



---In this query we can get the second highest Invoice_Amount from Invoice table
 
Old August 10th, 2004, 03:02 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to bodhibrata
Default

select max(a.Projects_Posted_Amount) from Member a,Member b
where a.Projects_Posted_Amount < b.Projects_Posted_Amount





Similar Threads
Thread Thread Starter Forum Replies Last Post
plz.....plz solve out my problem.... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 October 4th, 2007 12:56 PM
Passing more than one sqlQuery azamat_kd ADO.NET 1 May 23rd, 2006 04:36 AM
plz help me Sadi VB How-To 1 April 21st, 2006 03:44 PM
Plz plz someone help beetle_jaipur CSS Cascading Style Sheets 3 March 26th, 2006 05:37 AM
SQLQuery using OR (I think...) MrGiskard SQL Language 1 November 21st, 2005 04:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.