Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the Dup out of here!!!! (duplicates)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00512343
Message ID:
00512347
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
Not sure if this is what you are after but it may set you on the right track.

The SQL statement below will identify detail_no's with more than one entry:

SELECT detail_no, count(*) cnt FROM table GROUP BY detail_no HAVING cnt > 1

>Hello Everyone!!!
>I have a table has a field that is called Detail_no.
>In this table I have some detail_no's that have duplicates and that is fine because one stands for a shipped record and the other stands for a recieved record.
>
>However, I need the detail_no's that do not have a duplicate.
>(shipped but Not received or Received but not shipped )... I know that does not make sense but it happens.
>I am trying to find the best or Fastest way to do this because I a dealing with a table that starts out with over 400,000 records and eventually comes down to maybe 600.
>I don't know if there is a function to do this or not. But any help would be greatly appreciated.
>
>Thanks in advance
Previous
Reply
Map
View

Click here to load this message in the networking platform