Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More ANSI compliant SQL?
Message
De
13/09/2005 21:21:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
More ANSI compliant SQL?
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01049287
Message ID:
01049287
Vues:
51
Hi All,

Simple scenario. I have a bunch of records and I want to do a SELECT statement grouped on a fields value. I want the result cursor to have the grouped value and the field values for the first occuring record in the group. Problem is VFP 9 doesn't like that kind of SQL Statment, being more ANSI compliant and all. I know I can set the SQL engine to behave like the older versions of FoxPro but I'm wondering if there is a more "policitally correct" way of performing this query?
SELECT CompareValue,PriorityCode,UniqueID FROM crsSourceCursor GROUP BY CompareValue
Aloha,

James
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform