问题描述
我尝试使用以下代码:
SELECT SkillTargetID,DateTime,lead(EventName,1) over (partition by EventName order by DateTime) as next_eventname,lead(ReasonCode,1) over (partition by ReasonCode order by DateTime) as next_ReasonCode
FROM ucce1_awdb.dbo.Agent_State_Trace ast
WHERE
EventName = 3 and
ReasonCode= 0 and
next_eventname = 0 and
next_ReasonCode = 114
但是由于next_eventname
和next_ReasonCode
,我无法执行该查询。有人可以建议我该如何处理吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)