Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL problem in VFP 8
Message
From
20/11/2003 13:14:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
20/11/2003 11:23:12
John Fitzgerald
Kenneths Hair Salons & Day Spas,Inc.
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00851901
Message ID:
00851974
Views:
11
Hi John

If field1 has various values for each of the field2 groups, which of those values should VFP give you?

The answer is none! Don't rely on the SET ENGINEBEHAVIOR crutch. Compose the query so the results make sense ;)

Don't include field 1 in that query.

>I use this handy dandy sql statement in VFP 7 to find duplicates. For some reason it doesn't work in VFP 8.
>
>The generated error is: SQL: GROUP BY clause is missing or invalid.
>
>SELECT field1, field2, cnt(*) ;
>FROM TableName ;
>GROUP BY field2 ;
>HAVING cnt(*) > 1 ;
>INTO CURSOR Dupes
Previous
Reply
Map
View

Click here to load this message in the networking platform