Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAX function
Message
From
10/08/2007 12:35:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
MAX function
Miscellaneous
Thread ID:
01247432
Message ID:
01247432
Views:
67
Hi All:

How do you retrieve the record that has the latest date from a table? I thought you use the MAX function but the following code gives me all the records from the table.

Thanks,

Yossi
SELECT MAX(fp_dlvdat), fp_prccorn, fp_prcsoy ;
	FROM feedpric ;
	GROUP BY fp_prccorn, fp_prcsoy ;
	INTO CURSOR result	
Next
Reply
Map
View

Click here to load this message in the networking platform