biee 能否为子查询 提供变量

select
a.trade_id,
a.subscribe_time,
a.trade_id,
a.cancel_type,
a.operator_type,
a.operator_time
from dbo.tbl_subscribe_total a
inner join
(
select trade_id,max(operator_time) operator_time
from dbo.tbl_subscribe_total
where operator_type <> '2' and operator_time <= '2010-04-15'
group by trade_id) b
on a.trade_id = b.trade_id and a.operator_time = b.operator_time
where a.operator_type <> '2' and (a.cancel_type <> '00' or a.cancel_type is null)
and a.subscribe_time <= '2010-04-15'





operator_time <= '2010-04-15' 这个值 是 动态变化的,

与 subscribe_time <= '2010-04-15'相同

作者: here2007   发布时间: 2010-05-25

这个值怎么动态变化啊.可以放在session中作这个变

作者: xiaozheng_001   发布时间: 2010-05-27

应该可以的.就不知你这个变量是怎么样的动态变化法.可以放在Session Var中.如果是界面上的话就是作为提示.也可以把这个值从另一个自定义的表中取得.方法很多很灵活的

作者: xiaozheng_001   发布时间: 2010-05-29

完全可以,可以用repository variable或presentation variable实现,前者在资料库中定义,后者在前端页面定义。

作者: research_2009   发布时间: 2010-06-10

operator_time <= '2010-04-15'
和 subscribe_time <= '2010-04-15' 是同时变化的,
通过提示 得到 具体 日期

作者: here2007   发布时间: 2010-06-11

BIEE可以通过写SQL来做报表?

作者: sunshineliu   发布时间: 2010-06-13

不是,要通过报表来实现 上述SQL语句 查询出来的 结果

作者: here2007   发布时间: 2010-06-15

我们这种情况一般用视图来搞定。用报表来实现上面SQL的功能可能有点麻烦吧。

作者: sunshineliu   发布时间: 2010-06-15

视图也无法解决,取最大值的时间 是动态变化的,是通过 提示 来 选择 时间

作者: here2007   发布时间: 2010-06-18

请问一下  您是怎么实现的具体

作者: sophair1   发布时间: 2010-09-16