【发布时间】:2017-03-24 09:19:39
【问题描述】:
请查看以下在 mondrian 多维数据集上创建 JPivot 视图时生成的查询,该多维数据集在其架构中具有聚合表。
select
`Dim_Time`.`Time_Id` as `c0`,
`Dim_Time`.`month_no` as `c1`
from
`Dim_Time` as `Dim_Time`
where
`Dim_Time`.`Time_Id` = `AggTable1`.`Dim_Time_Month_(Key)`
group by
`Dim_Time`.`Time_Id`,
`Dim_Time`.`month_no`
order by
ISNULL(`Dim_Time`.`Time_Id`) ASC, `Dim_Time`.`Time_Id` ASC
为什么 AggTable1 没有出现在 from 子句中?表和特定列存在于数据库中。
【问题讨论】:
标签: mysql aggregate pentaho cube mondrian