Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
From
07/02/2011 12:54:30
 
 
To
07/02/2011 12:45:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01499047
Message ID:
01499048
Views:
60
>Hi Expert
>
>I have a Table of about 100000 records of about 3000 Codes. I want to select Code,Last Pur.Rate with Date of each code.
>

I think you're saying that you want to find out the last purchase date for each item in the table. If that's it, try:
SELECT Code, MAX(PurchaseDate) ;
  FROM YourTable ;
  GROUP BY Code ;
  INTO CURSOR csrLastPurch
You'll need to substitute the actual field names and the table name, of course.

If that wasn't what you wanted, can you explain better, or show some sample records and sample output.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform