Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get an histogram of a field ?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01202081
Message ID:
01202086
Views:
16
>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!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform