Cognossimplified Blogspot in 2013 02 Cardinalities in Cognos
description
Transcript of Cognossimplified Blogspot in 2013 02 Cardinalities in Cognos
![Page 1: Cognossimplified Blogspot in 2013 02 Cardinalities in Cognos](https://reader035.fdocuments.us/reader035/viewer/2022081007/55cf8f65550346703b9bebdd/html5/thumbnails/1.jpg)
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Cognossimplified
Saturday, 16 February 2013
Cardinalities in Cognos frameworkHi Guys,
Below is note on cardinalities .I have taken the content from IBM cognos helpguide .You can findthe same in cognos framework userguide .Just noting down point for my reference .
taken from IBM
IBM helpguide Link
IBM Cognos 8 supports both minimum-maximum cardinality and optional cardinality.
In 0:1, 0 is the minimum cardinality, 1 is the maximum cardinality.
In 1:n , 1 is the minimum cardinality, n is the maximum cardinality.
A relationship with cardinality specified as 1:1 to 1:n is commonly referred toas 1 to n when focusing on the maximum cardinalities.
Note --- so 0:1 to 1:n is also read as 1 to n
A minimum cardinality of 0 indicates that the relationship is optional. You specify a
Cardinality in Generated Queries
Join this sitew ith Google Friend Connect
Members (46) More »
Already a member? Sign in
Followers
► 2015 (1)
► 2014 (45)
▼ 2013 (77)► December (6)
► November (8)
► October (2)
► September (13)
► August (9)
Blog Archive
0 More Next Blog» Create Blog Sign In
![Page 2: Cognossimplified Blogspot in 2013 02 Cardinalities in Cognos](https://reader035.fdocuments.us/reader035/viewer/2022081007/55cf8f65550346703b9bebdd/html5/thumbnails/2.jpg)
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
minimum cardinality of 0 if you want the query to retain the information on the otherside of the relationship in the absence of a match. For example, a relationshipbetween customer and actual sales may be specified as1:1 to 0:n. This indicatesthat reports will show the requested customer information even though there maynot be any sales data present.
Therefore a 1 to n relationship can also be specified as:
0:1 to 0:n
0:1 to 1:n
1:1 to 0:n
1:1 to 1:n
Use the Relationship impact statement in the Relationship Definition dialog boxto help you understand cardinality. For example, Sales Staff (1:1) is joined to Orders(0:n).
It is important to ensure that the cardinality is correctly captured in the modelbecause it determines the detection of fact query subjects and it is used to avoiddouble-counting factual data.
When generating queries, IBM Cognos 8 follows these basic rules to apply cardinality:
Cardinality is applied in the context of a query.
1 to n cardinality implies fact data on the n side and implies dimension data onthe 1 side.
A query subject may behave as a fact query subject or as a dimensional querysubject, depending on the relationships that are required to answer a particularquery.
Possible end labels are
0..1 (zero or one match)
1..1 (exactly one match)
0..n (zero or more matches)
► July (19)
► June (2)
► May (1)
► April (2)
► March (5)
▼ February (7)Governors in framework manager
Cardinalities in Cognos framework
Related Links in drill down/drill up .ordrill thr...
Scope in Framework
Shortcut and Alias shortcut explained
Exporting Cognos package
Prompts in Cognos
► January (3)
► 2012 (37)
► 2011 (36)
Kapil
I have been working for last 6years in Hyderabad India asBusiness Intelligence developer.I have worked on wide range ofreporting tools like
Cognos,Microstrategy, Logixml. Also i haveworked on Mutliple ETL toolsDatastage,Informatica, Pentaho. I am usingthis blog as a place to note down myexperience with issues. Usually i forget thingover time as most ppl do.So its good to keepa online journal.
View my complete profile
About Me
![Page 3: Cognossimplified Blogspot in 2013 02 Cardinalities in Cognos](https://reader035.fdocuments.us/reader035/viewer/2022081007/55cf8f65550346703b9bebdd/html5/thumbnails/3.jpg)
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Posted by Kapil at 18:35
Labels: cardinalities, cardinality, Cognos, Framew ork
1..n (one or more matches)
The first part of the notation specifies the type of join for this relationship:
an inner join (1)
An inner join shows all matching rows from both objects.
an outer join (0)
An outer join shows everything from both objects, including the items that donot match. An outer join can be qualified as full, left, or right. Left and rightouter joins take everything from the left or right side of the relationshiprespectively and only what matches from the other side.
Example
Cardinalities are set according to reporting needs and are not necessarilybased on data .Consider below example .Which will require a full outer join.
Consider example of sold date and product .there might be dates when noproduct were sold and there can be product which were never sold .so thecardinality shoud be 0:n :0:n (Full outer join)
but in actual case we want to see only products that were sold so we have1:1 to 1:n we can also model it to outer join 0:n to 1:n base on requirement
Recommend this on Google
No comments:
Post a Comment
![Page 4: Cognossimplified Blogspot in 2013 02 Cardinalities in Cognos](https://reader035.fdocuments.us/reader035/viewer/2022081007/55cf8f65550346703b9bebdd/html5/thumbnails/4.jpg)
pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API
Newer Post Older PostHome
Subscribe to: Post Comments (Atom)
Enter your comment...
Comment as: Select profile...
Publish Preview
Post a Comment
Simple template. Powered by Blogger.