Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I eliminate dup record that has blank child recor
Message
 
À
06/04/2005 13:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01001983
Message ID:
01002644
Vues:
24
>>I what to find all duplicates of lastname+firstname and then if any of these name don't have any data in the child table arcpinfo,
>
>In VFP 9, you can find these records with a query like:
>
>
>SELECT lastname, firstName, CNT(*) ;
> FROM ( ;
> SELECT * FROM ARCPerson ;
> WHERE ID NOT IN (SELECT ID FROM ARCPInfo)) NoInfo ;
> GROUP BY 1,2
>
>This assumes that you have a primary key field in ARCPerson called ID and that ARCPInfo has the same ID field to link the two tables.
>
>Tamar


thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform