Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I eliminate dup record that has blank child recor
Message
 
To
06/04/2005 13:50:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01001983
Message ID:
01002644
Views:
18
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform