![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent |
|
2) Every attribute of an entity can change its value - like in "Temporal DB" Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? |
#3
| ||||
| ||||
|
|
Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent |
|
2) Every attribute of an entity can change its value - like in "Temporal DB" |
|
Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? |

|
Vladimir Odrljin |
#4
| |||
| |||
|
|
vldm10 wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent I have a feeling you are going to need to recast your conditions. If all the attributes are mutually independent, then the only candidate key for the relation is the combination of all N attributes, is it not? |
|
2) Every attribute of an entity can change its value - like in "Temporal DB" Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? Two entities? Where did the second one appear from? You started with an entity with 200+ attributes, and ... magic'd a second one out of thin air? |
|
-- Jonathan Leffler #include <disclaimer.h Email: jleff... (AT) earthlink (DOT) net, jleff... (AT) us (DOT) ibm.com Guardian of DBD::Informix v2007.0914 --http://dbi.perl.org/ ptb/PTB-1860 whirlpool2 2007-11-24 00:00:06 88FCD1C504D5345557AF5FEA2991A9138F5D151C781AC5FC29 6732F1BFDA6C7371B115 AB2B27673813EC1EE5320A28C938AA7316F4FCD544113EF4AB D4C9C9A |
#5
| ||||
| ||||
|
|
On Nov 24, 12:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent Then there are no functional dependencies so the entity can only be identified by the collection of all its attributes - and hence you'd end up with an equivalent superkey. If any of those attributes "change" it would also therefore be a different entity altogether. |
|
2) Every attribute of an entity can change its value - like in "Temporal DB" Nope, not gonna squeeze that one past. If they are all unstable, well then, you are saying there is not a single attribute that is consistent over the entity's lifetime? In that case how could you ever identify it in the real world following change? Perhaps hire someone to follow it down the street continually pointing at it? Y'know, Its strange we don't get more of that in daily life, given the popularity of OID's in IT... oh well, I guess we're stuck with the old fashioned method of identifying things by looking at them. Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? A binary relationship, without use of a surrogate, would obviously require twice the number of attributes that made up the aforementioned superkey. |
|
Hmmm, why do I get the feeling you're about to try and sell me something? ![]() |
| Vladimir Odrljin- Hide quoted text - - Show quoted text - |
#6
| |||
| |||
|
|
On Nov 23, 10:36 pm, JOG <j... (AT) cs (DOT) nott.ac.uk> wrote: On Nov 24, 12:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent Then there are no functional dependencies so the entity can only be identified by the collection of all its attributes - and hence you'd end up with an equivalent superkey. If any of those attributes "change" it would also therefore be a different entity altogether. It should be at least 400 attributes by my calculation. |
|
Are you familiar with "Temporal DB" theory? |
| 2) Every attribute of an entity can change its value - like in "Temporal DB" Nope, not gonna squeeze that one past. If they are all unstable, well then, you are saying there is not a single attribute that is consistent over the entity's lifetime? In that case how could you ever identify it in the real world following change? Perhaps hire someone to follow it down the street continually pointing at it? Y'know, Its strange we don't get more of that in daily life, given the popularity of OID's in IT... oh well, I guess we're stuck with the old fashioned method of identifying things by looking at them. Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? A binary relationship, without use of a surrogate, would obviously require twice the number of attributes that made up the aforementioned superkey. This is m-n relationship and the key can have more attributes then you wrote. Hmmm, why do I get the feeling you're about to try and sell me something? ![]() This is about compex DB and some interesting cases about them. I beleive they will be actual in near future, people start to ask about it. Vl. Odrljin Vladimir Odrljin- Hide quoted text - - Show quoted text - |
#7
| |||
| |||
|
|
On Nov 24, 5:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: On Nov 23, 10:36 pm, JOG <j... (AT) cs (DOT) nott.ac.uk> wrote: On Nov 24, 12:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent Then there are no functional dependencies so the entity can only be identified by the collection of all its attributes - and hence you'd end up with an equivalent superkey. If any of those attributes "change" it would also therefore be a different entity altogether. It should be at least 400 attributes by my calculation. You think a relation with 200 attributes should have a superkey containing 400 attributes? I see. |
|
Are you familiar with "Temporal DB" theory? Of course, but I don't see what relevance it has here. Temporal databases just augment the current key with time data, so the entity may be followed over its lifetime. One still needs to be able to recognise that entity with a stable identifier. |
| 2) Every attribute of an entity can change its value - like in "Temporal DB" Nope, not gonna squeeze that one past. If they are all unstable, well then, you are saying there is not a single attribute that is consistent over the entity's lifetime? In that case how could you ever identify it in the real world following change? Perhaps hire someone to follow it down the street continually pointing at it? Y'know, Its strange we don't get more of that in daily life, given the popularity of OID's in IT... oh well, I guess we're stuck with the old fashioned method of identifying things by looking at them. Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? A binary relationship, without use of a surrogate, would obviously require twice the number of attributes that made up the aforementioned superkey. This is m-n relationship and the key can have more attributes then you wrote. Hmmm, why do I get the feeling you're about to try and sell me something? ![]() This is about compex DB and some interesting cases about them. I beleive they will be actual in near future, people start to ask about it. Vl. Odrljin Vladimir Odrljin- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
#8
| |||
| |||
|
|
On Nov 24, 12:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent Then there are no functional dependencies so the entity can only be identified by the collection of all its attributes - and hence you'd end up with an equivalent superkey. If any of those attributes "change" it would also therefore be a different entity altogether. |
|
2) Every attribute of an entity can change its value - like in "Temporal DB" Nope, not gonna squeeze that one past. If they are all unstable, well then, you are saying there is not a single attribute that is consistent over the entity's lifetime? In that case how could you ever identify it in the real world following change? Perhaps hire someone to follow it down the street continually pointing at it? Y'know, Its strange we don't get more of that in daily life, given the popularity of OID's in IT... oh well, I guess we're stuck with the old fashioned method of identifying things by looking at them. |
|
Now I have two questions: 1) How many attributes has a key of the corresponding relation? 2) How many attributes has a key of m-n relationship between the two mentioned entities? A binary relationship, without use of a surrogate, would obviously require twice the number of attributes that made up the aforementioned superkey. Hmmm, why do I get the feeling you're about to try and sell me something? ![]() Vladimir Odrljin |
#9
| |||
| |||
|
|
"JOG" <jog (AT) cs (DOT) nott.ac.uk> wrote in message news:8505d954-cdc3-4bf8-9107-b307563be0e8 (AT) r60g2000hsc (DOT) googlegroups.com... On Nov 24, 12:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent Then there are no functional dependencies so the entity can only be identified by the collection of all its attributes - and hence you'd end up with an equivalent superkey. If any of those attributes "change" it would also therefore be a different entity altogether. It cannot be determined whether two representations from two distinct points in time refer to the same individual--even if all of the attribute values are identical--unless, of course, one of the attributes is a surrogate; |
#10
| |||
| |||
|
|
"Brian Selzer" <brian (AT) selzer-software (DOT) com> wrote in message news j92j.77429$Um6.17027 (AT) newssvr12 (DOT) news.prodigy.net..."JOG" <jog (AT) cs (DOT) nott.ac.uk> wrote in message news:8505d954-cdc3-4bf8-9107-b307563be0e8 (AT) r60g2000hsc (DOT) googlegroups.com... On Nov 24, 12:38 am, vldm10 <vld... (AT) yahoo (DOT) com> wrote: Not long time ago on this NG there were few posts which involved an entity with 200+ attributes. Let all these attributes satisfy the following two conditions: 1) All these attributes are mutually independent Then there are no functional dependencies so the entity can only be identified by the collection of all its attributes - and hence you'd end up with an equivalent superkey. If any of those attributes "change" it would also therefore be a different entity altogether. It cannot be determined whether two representations from two distinct points in time refer to the same individual--even if all of the attribute values are identical--unless, of course, one of the attributes is a surrogate; Do you mean "surrogate" or "synthetic" ? |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |