Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of unique records in one (sql) command?
Message
De
29/06/2007 11:56:12
 
 
À
28/06/2007 21:26:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01236514
Message ID:
01236824
Vues:
13
>>>Hi all,
>>>
>>>Is there a (sql) command that can calculate the number of unique records of a field into a table with just one command in VFP 5?
>>>
>>>Thanks beforehand.
>>
>>How about
>>
>>
SELECT COUNT (DISTINCT yourfield) FROM yourTable INTO ARRAY aTemp
>
>Are you sure this would work in VFP5?

Pretty sure. Actually, I think this syntax is valid as far back as 2.6 but can't validate that from where I am now.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform