Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursion SQL Mental Block
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Database:
Oracle
Miscellaneous
Thread ID:
01166743
Message ID:
01166835
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
... and small example
-- generate all tree
SELECT *
    FROM anytable
      CONNECT BY ParentID = PRIOR ObjectID


-- generate tree from any branch
SELECT *
    FROM anytable
      CONNECT BY ParentID = PRIOR ObjectID
       START WITH ParentID=25
MartiJ

>You're prolly in luck -- I'm not reading your question/scenario very closely, but Oracle has really good syntax specifically for recursion.
>
>(FYI: SQL Server is somewhat less good, but better in 2005 than it used to be.)
>
>If memory serves, you want to check out the STARTS WITH and CONNECT BY clauses.
>
>>L<
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform