Wrox Programmer Forums
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2004, 11:42 AM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Non-Tree DAGs

I know that there has been some discussion of representing and traversing hierarchies with SQL on this board, but I was hoping to get some advice on a somewhat different problem.

I am building a database to represent dependencies among test cases. A given test case can have 0..n dependencies and any test case can be a dependency of 0..n other cases. As of now I've got a simple relationship table that stores a dependentID and a dependencyID. The problem is that I need to create a constraint to prevent any cycles in this directed graph. I've read a few things on representing trees as adjacency lists, but this doesn't really apply since a child can have multiple parents.

If any of you SQL gurus have any insight I would love to hear it.

Thanks,
Mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
tree menu anjalisharma Hibernate 4 September 24th, 2007 05:04 AM
i want to make a tree viren_balaut J2EE 2 September 12th, 2004 11:41 PM
how to make a tree viren_balaut Javascript 1 August 30th, 2004 03:05 PM
how to make a tree viren_balaut Java GUI 0 August 30th, 2004 07:31 AM
Tree View Natalie Pro VB 6 5 September 23rd, 2003 07:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.