dbTalk Databases Forums  

how to sql query this?

comp.databases.oracle comp.databases.oracle


Discuss how to sql query this? in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
steve
 
Posts: n/a

Default how to sql query this? - 10-17-2004 , 05:42 AM






Hi,

I have a table that contains data keys similar the following, where each
letter is a key to an address



a,b
a,c
c,b
b,d
d,f
x,y
p,q

if i pass in a key such as "a" how can i return the items that are connected
to "a" both directly & indirectly?

I.E
a,b
a,c
c,b ( via a,c)
b,d (via a,b)
d,f ( via a,b+b,d)

the parent key is always in col1, the child in col2



steve


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.