Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complicated tree query
Message
 
To
10/10/2006 01:55:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160753
Message ID:
01160755
Views:
12
Hi, Edgar!

First of all, try to avoid using the reserved words as the field names
USE your_table_name IN 0 ALIAS PARENTS
USE your_table_name AGAIN IN 0 ALIAS CHILDS
* select all childs from top record
GO TOP
SELECT Tname FROM CHILDS INTO CURSOR cRelations WHERE childs.pid=parents.id
BROWSE nowait
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform