Click here to Skip to main content
15,899,825 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionInformation Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 2:52
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 2:52 
AnswerRe: Information Relation Modeling Pin
manchanx2-Mar-15 6:53
professionalmanchanx2-Mar-15 6:53 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 7:25
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 7:25 
GeneralRe: Information Relation Modeling Pin
manchanx2-Mar-15 8:36
professionalmanchanx2-Mar-15 8:36 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 8:59
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 8:59 
AnswerRe: Information Relation Modeling Pin
Eddy Vluggen2-Mar-15 8:00
professionalEddy Vluggen2-Mar-15 8:00 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 8:41
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 8:41 
AnswerRe: Information Relation Modeling Pin
Gerry Schmitz3-Mar-15 13:30
mveGerry Schmitz3-Mar-15 13:30 
If I was going to implement a "who knows who", I would use a "relationship" entity.

Conceptually, this would like: [Actor]<--->>[Relationship]<<--->[Actor]

The "relationship" entity could include "intersection" data describing the relationship: e.g. father-son; brother-sister; etc.

Physically, this is implemented as a recursive database structure:
|--->[Actor]--->>[Relationship]---|
|                                 |
|---------------------------------|

For example:

Actors
------
ID: 1; Name: Joe
ID: 2; Name: Jane
ID: 3; Name: Billy
ID: 4; Name: Sue

Relationships (ID1; ID2; RelationDesc1; RelationDesc2 ...):
-------------
1; 2; Husband; Wife
1; 3; Father; Son
3; 4; Brother; Sister
etc.


ID1 and ID2 are foreign keys (which could be concatenated to create a unique "relationship" key; or one could use a separate ID but then one would need to insure there are no duplicate relationships).

The rest is "intersection data" (i.e. it only has meaning in the context of a relationship).
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)4-Mar-15 2:02
professionalDaniel Lieberwirth (BrainInBlack)4-Mar-15 2:02 
GeneralRe: Information Relation Modeling Pin
Gerry Schmitz4-Mar-15 23:27
mveGerry Schmitz4-Mar-15 23:27 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)5-Mar-15 2:28
professionalDaniel Lieberwirth (BrainInBlack)5-Mar-15 2:28 
NewsRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)7-Mar-15 4:34
professionalDaniel Lieberwirth (BrainInBlack)7-Mar-15 4:34 
QuestionPrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 7:21
professionalmanchanx25-Feb-15 7:21 
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Wendelius25-Feb-15 7:57
mentorWendelius25-Feb-15 7:57 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:24
professionalmanchanx25-Feb-15 21:24 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell26-Feb-15 9:45
jschell26-Feb-15 9:45 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 20:20
professionalmanchanx26-Feb-15 20:20 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell27-Feb-15 10:19
jschell27-Feb-15 10:19 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx27-Feb-15 20:00
professionalmanchanx27-Feb-15 20:00 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell4-Mar-15 9:00
jschell4-Mar-15 9:00 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx5-Mar-15 3:13
professionalmanchanx5-Mar-15 3:13 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell6-Mar-15 10:52
jschell6-Mar-15 10:52 
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Mycroft Holmes25-Feb-15 13:21
professionalMycroft Holmes25-Feb-15 13:21 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:25
professionalmanchanx25-Feb-15 21:25 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Mycroft Holmes25-Feb-15 21:49
professionalMycroft Holmes25-Feb-15 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.