Mike Yearwood
Toronto, Ontario, Canada
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only