求解:什么是服务器复杂聚合

0
在报表页面做聚合时,服务器复杂聚合和默认聚合的区别是什么,望大牛能告知一二,谢谢!
已邀请:
0

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的版本 ^-^(这个我熟悉)
 

要回复问题请先登录注册