Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Weak entity primary key question

$
0
0
Hi all,
Say I have a weak entity whose primary key is a composite key made up of the primary keys of two strong entities (hence they are foreign keys). Is it possible then to have another weak entity related to that first weak entity, using those foreign keys as a composite key again in the new entity? Or should I simply make the first weak entity a strong one by giving it its own surrogate key, making the foreign keys simply normal keys in the table (no longer the entity's primary key), and use the new surrogate key as the primary key of the second weak entity? This is confusing I know, but I hope somebody can make sense of it. Thanks in advance.

Viewing all articles
Browse latest Browse all 13329

Trending Articles