Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching a table
Message
 
 
À
18/08/2000 13:40:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00406735
Message ID:
00406757
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform