Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select
Message
 
To
08/05/1998 09:13:17
Ranjit Londhe
Anglo Eastern Ship Mgmt Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00098004
Message ID:
00098263
Views:
29
>SELECT cfieldname, count(*) AS dup_num ;
> FROM ctable ;
> GROUP BY cfieldname ;
> HAVING count(*) > 1 ;
> INTO CURSOR ctempfile
Ranjit,

Out of curiosity, why the HAVING clause? By definition there will always be at least one record for each value of the field being grouped on. Doesn;t the HAVING clause just slow things down without improving anything, or am I missing something here?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform