Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of unique records in one (sql) command?
Message
From
29/06/2007 15:49:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/06/2007 11:56:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01236514
Message ID:
01236916
Views:
15
>>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform