Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Circular Record Reference

Status
Not open for further replies.

ruse7013

Programmer
Apr 10, 2003
25
US
To: All Who Love Oracle Challenges

Environment:
Oracle8i (8.1.7)

Scenario:
The following records exist in a table:

ITEM DEST SRC
---- ---- ----
1111 101 201
1111 201 202
1111 202 101

or in a generic example, we have:

ITEM DEST SRC
---- ---- ----
1111 A B
1111 B C
1111 C A

Question:
What would be the best approach in Oracle8i to find a circular reference in columns DEST and SRC? For example, for ITEM=1111, the following circular reference exists for DEST->SRC: A->B->C->A

Any ideas are highly appreciated!
Thanks.

Regards,
<ruse7013>
 
Hi lewisp,

Thank you for your idea. The challenge has been resolved. It's a very short and "cute" solution.

Regards,
<ruse7013>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top