Reputation: 4057
If i have three tables, One for users
, one for activationLink
and one for location
.
-The relation between the users
and activationLink
is an identifying relationship because the specific activationLink
only exists if the user is registered in the system.
-But the relation between users
and location
is non identifying, because the location
exists without the users
.
-And if exists a table called users
and other called worker
and student
, the worker
and student
can exist without the users
? is a non identifying relationship?
my logic is correct in the three points?
thanks.
Upvotes: 0
Views: 668
Reputation: 18408
"-The relation between the users and activationLink is an identifying relationship because the specific activationLink only exists if the user is registered in the system."
Hmmmmmmmmmmmm. So the definition is then that a relationship between x and Y is "identifying" if the Y cannot exist "without the X" ?
That's not exactly what I remember from when I was taught. I think I've been told that a relationship is "identifying" if the relationship itself is (necessarily ?) part of the key/identifier (of the "child" entity). That is, that the attributes of the logical key/identifier of the parent entity are also part of the logical key/identifier of the child entity. Is this the case in your example ? Are activationlinks not unique by and of themselves ? Can several distinct users "share" the same activationlink ? Sounds odd.
Note that this definition makes the concept superficial, if not completely inapplicable, to relationships that do not have a "many" on at least one of its sides (such as your user-worker relationship, e.g.).
Upvotes: 0
Reputation: 40359
(1) The relation between User and ActivationLink is not entirely clear as presented.
It is probably an identifying relationship, but I'd like to know a bit more before comitting to it.
(2) Correct. Users and Locations are (as you have described here) separate entities.
(3) Based solely on the typical meanings derived from the words used, one would assume that "A User can be a Student or a Workder", so they sound like subtypes... but this cannot be proved or disproved by the information at hand. Followup questions are:
Upvotes: 2