Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scanning for Duplicates
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00825060
Message ID:
00825081
Views:
21
Neil,

You need both columns in the result and the group by.
select mainkey, no_in_row, count(*) as cnt ;
   from ...
   group by mainkey, no_in_row ;
   having cnt > 1
>This only gives me the count of how many records for each mainkey?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform