简体   繁体   English

使用cognos report studio生成SQL查询的Cognos报告

[英]Generating a Cognos report using cognos report studio for a SQL query

I am a newbie in Cognos. 我是Cognos的新手。 I am trying to create a report using report studio, I have the required package, and I want to create a report using a complex SQL query which has joins between three tables. 我正在尝试使用Report Studio创建报告,我具有必需的程序包,并且想使用包含三个表之间的联接的复杂SQL查询创建报告。 Can anyone please give a suggestion to start building the report? 有人可以提出建议开始构建报告吗? Thanks! 谢谢!

How to write SQL for Cognos reports 如何为Cognos报表编写SQL

FM is to create complex models. FM是要创建复杂的模型。 If you need a quick-and-dirty report you can specify custom SQL as the tutorial shows. 如果需要快速报告,则可以按照教程所示指定自定义SQL。

It would depend on how the data you see in Report Studio is modelled, typically a tool called Framework Manager is used connect to and model the source tables and views. 这将取决于您如何在Report Studio中看到的数据建模,通常使用称为Framework Manager的工具连接到源表和视图并对其建模。 Framework Manager creates the packages that you see in Report Studio, it can define relationships between entities like tables (if they're not already defined in the source database). Framework Manager创建您在Report Studio中看到的包,它可以定义实体(如表)之间的关系(如果尚未在源数据库中定义它们)。

Not sure how to tell from Report Studio if the relationship has been defined properly other than trying to pull over fields from each table into the same Report Studio Query. 除了尝试将每个表中的字段移到同一Report Studio查询中之外,不知道如何从Report Studio判断该关系是否已正确定义。 It is best to talk to whoever designed the Framework Manager model or look at the model itself. 最好与设计Framework Manager模型的人交谈或查看模型本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM