dbTalk Databases Forums  

terminology q. regarding FK

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss terminology q. regarding FK in the comp.databases.oracle.misc forum.



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

Default terminology q. regarding FK - 11-02-2008 , 09:50 PM






I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios

Reply With Quote
  #2  
Old   
Carlos
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-03-2008 , 02:37 AM






On 3 nov, 04:50, m... (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
You look as if you are mixing up logical design concepts with physical
design concepts.

In an E/R relationship you should use t2 "has" t1, t1 "belongs to" t2
or anything else that describes the relationship between entities.

The tables are commonly referred as "parent" and "child" when it comes
down to foreign keys.

HTH.

Cheers.

Carlos.

Quote:
Mark Harrison
Pixar Animation Studios
BTW: My child can't wait for "Cars 2", so hurry up! ;-)


Reply With Quote
  #3  
Old   
Carlos
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-03-2008 , 02:37 AM



On 3 nov, 04:50, m... (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
You look as if you are mixing up logical design concepts with physical
design concepts.

In an E/R relationship you should use t2 "has" t1, t1 "belongs to" t2
or anything else that describes the relationship between entities.

The tables are commonly referred as "parent" and "child" when it comes
down to foreign keys.

HTH.

Cheers.

Carlos.

Quote:
Mark Harrison
Pixar Animation Studios
BTW: My child can't wait for "Cars 2", so hurry up! ;-)


Reply With Quote
  #4  
Old   
Carlos
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-03-2008 , 02:37 AM



On 3 nov, 04:50, m... (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
You look as if you are mixing up logical design concepts with physical
design concepts.

In an E/R relationship you should use t2 "has" t1, t1 "belongs to" t2
or anything else that describes the relationship between entities.

The tables are commonly referred as "parent" and "child" when it comes
down to foreign keys.

HTH.

Cheers.

Carlos.

Quote:
Mark Harrison
Pixar Animation Studios
BTW: My child can't wait for "Cars 2", so hurry up! ;-)


Reply With Quote
  #5  
Old   
Carlos
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-03-2008 , 02:37 AM



On 3 nov, 04:50, m... (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
You look as if you are mixing up logical design concepts with physical
design concepts.

In an E/R relationship you should use t2 "has" t1, t1 "belongs to" t2
or anything else that describes the relationship between entities.

The tables are commonly referred as "parent" and "child" when it comes
down to foreign keys.

HTH.

Cheers.

Carlos.

Quote:
Mark Harrison
Pixar Animation Studios
BTW: My child can't wait for "Cars 2", so hurry up! ;-)


Reply With Quote
  #6  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-12-2008 , 12:19 PM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

Long, long ago, I used to use terms like
"each and every order contains one or more order lines"
"each order line is on an order"

This completely describes the (fully mandatory) relation
between orders and order lines.

"each person may drive a car"
"any car may be driven by a person"

This would describe the fully optional relations between persons
and cars (in contrast with what American teenagers think)

Generally: when t1 references t2, t1 is called the child of t2.
A possible error by Oracle is "no parent record found" when
inserting into t1
--

Regards,
Frank van Bortel


Reply With Quote
  #7  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-12-2008 , 12:19 PM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

Long, long ago, I used to use terms like
"each and every order contains one or more order lines"
"each order line is on an order"

This completely describes the (fully mandatory) relation
between orders and order lines.

"each person may drive a car"
"any car may be driven by a person"

This would describe the fully optional relations between persons
and cars (in contrast with what American teenagers think)

Generally: when t1 references t2, t1 is called the child of t2.
A possible error by Oracle is "no parent record found" when
inserting into t1
--

Regards,
Frank van Bortel


Reply With Quote
  #8  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-12-2008 , 12:19 PM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

Long, long ago, I used to use terms like
"each and every order contains one or more order lines"
"each order line is on an order"

This completely describes the (fully mandatory) relation
between orders and order lines.

"each person may drive a car"
"any car may be driven by a person"

This would describe the fully optional relations between persons
and cars (in contrast with what American teenagers think)

Generally: when t1 references t2, t1 is called the child of t2.
A possible error by Oracle is "no parent record found" when
inserting into t1
--

Regards,
Frank van Bortel


Reply With Quote
  #9  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: terminology q. regarding FK - 11-12-2008 , 12:19 PM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm doing some FK analysis of our tables by making a directed
graph representing FK dependencies and then traversing the
graph. In my code, I name everything using directed graph
terminology, but I'd like to have something a bit more
"user friendly" in the report.

In this scenario:
create table t1(a varchar2(20));
alter table t1 add constraint t1_fk foreign key(a) references t2(b);

t1.a must exist in t2.b. So,

t1 is the _______ of t2.
t2 is the _______ of t1.

Many TIA!
Mark

Long, long ago, I used to use terms like
"each and every order contains one or more order lines"
"each order line is on an order"

This completely describes the (fully mandatory) relation
between orders and order lines.

"each person may drive a car"
"any car may be driven by a person"

This would describe the fully optional relations between persons
and cars (in contrast with what American teenagers think)

Generally: when t1 references t2, t1 is called the child of t2.
A possible error by Oracle is "no parent record found" when
inserting into t1
--

Regards,
Frank van Bortel


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.