biee 能否为子查询 提供变量
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
作者: xiaozheng_001 发布时间: 2010-05-27
作者: xiaozheng_001 发布时间: 2010-05-29
作者: research_2009 发布时间: 2010-06-10
和 subscribe_time <= '2010-04-15' 是同时变化的,
通过提示 得到 具体 日期
作者: here2007 发布时间: 2010-06-11
作者: sunshineliu 发布时间: 2010-06-13
作者: here2007 发布时间: 2010-06-15
作者: sunshineliu 发布时间: 2010-06-15
作者: here2007 发布时间: 2010-06-18
作者: sophair1 发布时间: 2010-09-16