Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching a table
Message
 
 
To
18/08/2000 13:40:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00406735
Message ID:
00406757
Views:
17
>Hi Nadya,
>I'm trying to find ssnumbers that have two of my insurance (comapny1 and company2)
>comanys related to the same ssnumber. All of the insurance companys have a ssnumber fiel.
>
>But I think I can use your example, as a newbe haven't seen it expressed this way before.
>
>Thanks
>John

Actually, it's a standard way to identify duplicates in a table.

select *, count(*) as cnt_dups from table TableName group by Field_which_may_contain_dups having cnt_dups>1 into table Dups

Next step:
2. select dups
index on Field_which_may_contain_dups tag DupField && in your case ssnumber

3. select your table
set relation into dups on ssnumber

4. Browse both tables (YourTable on top, dups in the bottom):
and decide, what do you want to do with duplicates.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform