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 15:49:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/06/2007 11:56:12
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:
01236916
Vues:
14
>>>>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.

I keep a copy of FPD2.6 around for checking out things like this, but it flatly refused to allow Distinct anywhere - actually it doesn't do any selects, no matter what I do. Maybe it's just rotten :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform