Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get an histogram of a field ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01202081
Message ID:
01202086
Vues:
15
>Hello,
>
>In a VFP table, I would like to have an histogram of a field. (To know how the field is populated).
>This field can be Numeric or Character.
>
>For example, output will be :
>
>In field NB_TEST :
> string "ABCDEF" : 10000 occurences (present in 10000 records)
> "TEST1" : 5600 occur
> "TESTxx" : 150 occur
>
>Is it possible to have such a thing with a SQL request ?
>Or if it's not, how can I get this ??
>
>Thanks a lot !
>Regards
>Steph

something like..

select NB_Test, count(*) from MyTable group by NB_Test
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform