dbTalk Databases Forums  

row dependencies

comp.databases comp.databases


Discuss row dependencies in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bob@coolgroups.com
 
Posts: n/a

Default row dependencies - 07-11-2007 , 11:03 PM






I was just wondering if you can have a situation in databases where
row B depends on row A, and row A depends on row B. Is this a sign of
bad design if you have this?

And, can someone give me a concrete example of when you might have
this in the real world?


Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: row dependencies - 07-12-2007 , 08:22 AM






On Jul 12, 12:03 am, b... (AT) coolgroups (DOT) com wrote:
Quote:
I was just wondering if you can have a situation in databases where
row B depends on row A, and row A depends on row B. Is this a sign of
bad design if you have this?

And, can someone give me a concrete example of when you might have
this in the real world?
An employee table often includes a manager attribute where a manager
must be an employee. I cannot think immediately of one going both ways
in the same table. What leads you to ask this?

Ed



Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: row dependencies - 07-12-2007 , 10:17 AM



Ed Prochak <edprochak (AT) gmail (DOT) com> wrote:

Quote:
On Jul 12, 12:03 am, b... (AT) coolgroups (DOT) com wrote:
I was just wondering if you can have a situation in databases where
row B depends on row A, and row A depends on row B. Is this a sign of
bad design if you have this?

And, can someone give me a concrete example of when you might have
this in the real world?

An employee table often includes a manager attribute where a manager
must be an employee. I cannot think immediately of one going both ways
in the same table. What leads you to ask this?
This example would be better split into two tables (employee and
employee's manager). At least one employee is not going to have a
manager.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.


Reply With Quote
  #4  
Old   
paul c
 
Posts: n/a

Default Re: row dependencies - 07-12-2007 , 02:21 PM



Ed Prochak wrote:
Quote:
On Jul 12, 12:03 am, b... (AT) coolgroups (DOT) com wrote:

I was just wondering if you can have a situation in databases where
row B depends on row A, and row A depends on row B. Is this a sign of
bad design if you have this?

And, can someone give me a concrete example of when you might have
this in the real world?


An employee table often includes a manager attribute where a manager
must be an employee. I cannot think immediately of one going both ways
in the same table. ...
Spouses?


Reply With Quote
  #5  
Old   
Ed Prochak
 
Posts: n/a

Default Re: row dependencies - 07-13-2007 , 07:00 AM



On Jul 12, 3:21 pm, paul c <toledobythe... (AT) oohay (DOT) ac> wrote:
Quote:
Ed Prochak wrote:
On Jul 12, 12:03 am, b... (AT) coolgroups (DOT) com wrote:

I was just wondering if you can have a situation in databases where
row B depends on row A, and row A depends on row B. Is this a sign of
bad design if you have this?

And, can someone give me a concrete example of when you might have
this in the real world?

An employee table often includes a manager attribute where a manager
must be an employee. I cannot think immediately of one going both ways
in the same table. ...

Spouses?
ooo, you're good! nice example.



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.