dbTalk Databases Forums  

Foreign keys

comp.databases.theory comp.databases.theory


Discuss Foreign keys in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #171  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM







"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




Reply With Quote
  #172  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM







"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




Reply With Quote
  #173  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM




"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




Reply With Quote
  #174  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM




"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




Reply With Quote
  #175  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM




"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




Reply With Quote
  #176  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM




"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




Reply With Quote
  #177  
Old   
David Cressey
 
Posts: n/a

Default Re: Foreign keys - 01-17-2008 , 03:13 PM




"Evan Keel" <evankeel (AT) sbcglobal (DOT) net> wrote

Quote:
Not reading the whole thread (big mistake on my part), but how about the
instance where a foreign key can be null?. No functional dependecy but
legit.
The response to this is the same as what has been given dozens of times
before.

Decompose the table into two tables, one of which only contains the PK and
the FK under discussion. Now, when the FK would have received a null, omit
the entire tuple (row),
since it conveys no information.

Nulls drop out of the discussion, and it proceeds as before.




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.