COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: Alp on 10 Oct 2010 10:50:43 PM

Title: Relationships between Alias shortcuts
Post by: Alp on 10 Oct 2010 10:50:43 PM
I have datasource query subjects as
A <-> B

I need this replicated 5 times. I hoped to use Alias shortcuts for A and B 5 times each to get:
A <-> B
A1 <-> B1
etc.
When I create A1 and B1 as Alias shortcuts and try creating a relationship between A1 and B1 FM says if I would like to create a shortcut for relationship that is carried over from A <-> B.

But then it crossed my mind that such alias shortcuts also bring relationships as A <-> B1 and A1 <-> B ? That is not quite what I need.
Should I use alias shortcuts here or maybe another copy data query subject is a better alternative?

Thanks,
- Alp
Title: Re: Relationships between Alias shortcuts
Post by: IceTea on 11 Oct 2010 01:46:41 AM
Do the relationships between A and B always use the same fields?

We have alias shortcuts when referring two tables in different context.

Example:

Title: Re: Relationships between Alias shortcuts
Post by: Alp on 11 Oct 2010 08:32:34 AM
IceTea,

Thanks, very helpful!

So the let me put it this way. The report studio will not join alias shortcuts with tables until we at lease create an alias to the relationship, Am I correct?

Thanks,
- Alp
Title: Re: Relationships between Alias shortcuts
Post by: Alp on 11 Oct 2010 10:05:40 AM
... actually, I can see different SQL queries for creating the relationship between A1 and B1 as an alias to the existing one and creating the actual relationship. The actual (not a shortcut) relationship gives me SQL as expected.

- Alp