Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Friday afternoon toughie - tree endless loop
Message
From
03/02/2019 13:17:24
 
 
To
01/02/2019 20:24:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01665871
Message ID:
01665882
Views:
52
Hi Cetin,
Thanks. That's essentially what I ended up doing - although mine might have been more limited in scope (would have to try your query below to see what it covers off).

Albert

>Can't you simply check for such cases with an SQL like:
>
>
>select * from myTable t1 ;
>where exists (select * from myTable t2 ;
>  where t1.Company_id = t2.ParentColId and t1.ParentColId = t2.Company_Id)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform