求解:什么是服务器复杂聚合
0
在报表页面做聚合时,服务器复杂聚合和默认聚合的区别是什么,望大牛能告知一二,谢谢!
没有找到相关结果
重要提示:提问者不能发表回复,可以通过评论与回答者沟通,沟通后可以通过编辑功能完善问题描述,以便后续其他人能够更容易理解问题.
没有找到相关结果
1 个回复
seng - 从事BI、大数据、数据分析工作 2016-11-14 回答
赞同来自:
http://gerardnico.com/wiki/dat/obiee/aggregation_rule,
标准说法是:
Server Complex Aggregate
Applies the aggregation rule that is determined by the Oracle BI Server (such as the rule that is defined in the Oracle BI repository). The aggregation rule is determined and calculated by the server. It changes the report_sum function by the aggregate by function in the logical SQL.
我的理解这个主要作用于total值, 使用了Server Complex Aggregate可能logical sql就从
SELECT "Time Dim"."Month Name" saw_0, Facts."Qty Sold" saw_1, REPORT_SUM(saw_1 BY ) FROM AggregateTest ORDER BY saw_0
变为
SELECT "Time Dim"."Month Name" saw_0, Facts."Qty Sold" saw_1, AGGREGATE(saw_1 BY ) FROM AggregateTest ORDER BY saw_0
具体的物理sql可能,就会从
with (select sum(aa)from a) a ,(select 明细 from b) b
select .....
该成多个sql语句,具体依赖于数据库和连接方法, 示例可能就适用于10g的版本 ^-^(这个我熟悉)