biee 能否为子查询 提供变量
时间:2010-05-25
来源:互联网
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
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28