Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

showing first/last instance and largest instance

Status
Not open for further replies.

sap1958

Technical User
Oct 22, 2009
138
US
select giftid
max(giftamount)as Largest Gift,
max(giftdate) as most recent date,
min(giftamount)as Smallest Gift,
min(giftdate) as first date

I am trying to find the following
largest gift amount
Date of Largest gift amount
First gift amount
Date of First gift amount

Last gift amount
Date of Last Gift amount

Last 10 gift gifts
Date of Last 10 gifts

will I need to do a row() function?
 
I think you should post your question here:
thread183-1608562

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
Sorry, I thought I copied the forum link.
Here the right link:
forum183

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top