Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 12 of 12 total
Thread Foreign keys
Wed, Feb 27 2008 6:23 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Allan,

<< Here is my scenario: The Primary Keys in all of my tables is a GUID.  I
do this to separate the Primary key from the rest of the data.  I want a
unique Value here. So the “WorkCode” value stored in my "Call master” table
really won't reference the appropriate code in the “WorkTab” table. I use
this lookup in Drop down selectors on the Call Master screen.  I have a ton
of these drop downs

So if I’m reading you correctly. I should replace the “Work Code” in the
“Call Master “ table with the Primary Key Value from the “WorkTab” table..
(the GUID) >>

Either that or define a unique key on the column in the WorkTab table that
you wish to use instead of the primary key.  You can use both primary keys
and unique keys as the target of a foreign key relationship.

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Feb 27 2008 10:17 AMPermanent Link

Allan Brocklehurst
"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote:

Allan,

<< Here is my scenario: The Primary Keys in all of my tables is a GUID.  I
do this to separate the Primary key from the rest of the data.  I want a
unique Value here. So the “WorkCode” value stored in my "Call master” table
really won't reference the appropriate code in the “WorkTab” table. I use
this lookup in Drop down selectors on the Call Master screen.  I have a ton
of these drop downs

So if I’m reading you correctly. I should replace the “Work Code” in the
“Call Master “ table with the Primary Key Value from the “WorkTab” table..
(the GUID) >>

Either that or define a unique key on the column in the WorkTab table that
you wish to use instead of the primary key.  You can use both primary keys
and unique keys as the target of a foreign key relationship.

--
Tim Young
Elevate Software
www.elevatesoft.com


Tim;
I'll give that a go

Allan
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image