Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
De
07/02/2011 12:54:30
 
 
À
07/02/2011 12:45:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Divers
Thread ID:
01499047
Message ID:
01499048
Vues:
61
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform