cardinality for self join

-It is recomended “Always define cardinality, even for self-joins to avoid any cardinality warning messages.”
I have defined cardinality for self join (clasue used in self join is where grade=’A’) as 1:1( one to one)
While doing integrity check, it start giving me error.

If I remove cardinality universe does not show me any error.

Any thought -

why this is the case ???

Any implication of not setting cardinality for Self JOIN ???

thanks in advance


GBS74 (BOB member since 2007-01-23)

No. I have never defined one for a self join.


Mak 1 :uk: (BOB member since 2005-01-06)

Hi,

Where do you have this from?


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Look at following post

person has post this as one of standard used in universe

regards


GBS74 (BOB member since 2007-01-23)

That part about setting cardinalities for self-restricting joins is wrong, IMHO.


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Marek,

I have to disagree; I always set cardinalities to 1:1 for self-joins to avoid getting the warning message.

GBS74, what error message are you getting when you have the cardinality set?


anorak :uk: (BOB member since 2002-09-13)

Maybe its a certain patch level. I cannot remember ever doing this, but I have not used self joins for quite a while…


Mak 1 :uk: (BOB member since 2005-01-06)

Hi Anorak,

Which BOBJ version do you use? I use self-restricting joins quite often and I do not set their cardinalities. The integrity check does not complain at all.

I use BO XI 3.1.


Marek Chladny :slovakia: (BOB member since 2003-11-27)

What about when you detect Contexts?


anorak :uk: (BOB member since 2002-09-13)

Ups, I don’t remember when I used it last time. I always set contexts manually. That gives me better control of what I am doing and why.


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Funny how different people work in different ways. I always auto-detect Contexts, and have never had any issues.


anorak :uk: (BOB member since 2002-09-13)

Indeed, I always set these manually myself. Usually auto detect is fine for a dimensional model. The only exception to this is, if you are working with test data there is a chance that autodetect may not work correctly, as it depends on row counts.


Mak 1 :uk: (BOB member since 2005-01-06)

I think you’ll find you’re thinking of cardinalities. :wink: #Derek

I’m with Anorak, set cardinalities manually and detect contexts using the button. The algorithm hasn’t really changed since they got it right years ago.

Just beware of one-to-one joins at the end of a ‘path’ :wink: (or has this also now been covered by the detection algorithm?)


anorak :uk: (BOB member since 2002-09-13)

1-1s are now detected. I think that’s the only change that’s been made since it was first introduced.