If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Complex recursive join

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-10, 05:05
kreative03 kreative03 is offline
Registered User
 
Join Date: Sep 2010
Posts: 1
Wink Complex recursive join

How to create a recursive join where parent and child are store in same field. Consider below example:

SF-AIRPORT (Parent)
SF-AIRPORT/192 AIRFIELD ENGINEER (child)

Query needs to find out all the child elements for the parent (In above example all child are concatenated by / in the above example for parent SF-AIRPORT)

I was trying to use SUBSTR AND INSTR functions with little success

Any help or pointers
Reply With Quote
  #2 (permalink)  
Old 09-01-10, 05:14
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,297
You need to fix your database design, then you can use CONNECT BY
Reply With Quote
Reply

Tags
instr, join, join query, recursive, substring

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On