Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement, How to?
Message
From
04/04/2001 11:44:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Statement, How to?
Miscellaneous
Thread ID:
00491913
Message ID:
00491913
Views:
54
I have an Invoice table with 4 fields in which I need to pull that last invoice for a file_num.

SELECT Invoice.invoice, MAX(Invoice.date), Invoice.amount, Invoice.file_num FROM openclose!invoice GROUP BY Invoice.file_num

This gives me the Max date for a file_num but the invoice and amount don't match up with the date.

How can I get the Last invoice based on the invoice date?

Thanks in advance.

Derick Carlson
Next
Reply
Map
View

Click here to load this message in the networking platform