Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplify 2 selects
Message
De
19/01/2007 15:30:55
 
 
À
19/01/2007 13:51:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01187112
Message ID:
01187176
Vues:
32
>Anybody know if the following code could be simplified?
>
>select dist site_id from training into cursor crstemp
>select dist reccount() as sitesrepresented from crstemp into array aSitesRepresented
>
>
>The need is to get a single number that will be used in a report. The above works and the array appears to be global, but I was not overly comfortable with the solution.
>
>Thanks

Does

SELECT COUNT(DISTINCT site_id) FROM training INTO CURSOR/ARRAY etc

work for you????
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform