回复 板凳 的帖子
select distinct T1.dbid,T1.id,T4.name,T1.headline from Defect T1,statedef T4,history T6 where T1.state = T4.id and (T1.dbid <> 0 and T1.dbid = T6.entity_dbid and 16777224 = T6.entitydef_id and (T6.action_name='Submit')) and (T6.action_timestamp > dateadd(wk,datediff(wk,0,getutcdate()-7),0)) and T4.name <> 'Closed'
我是用的CQ环境,
每个人的数据库表不一样,字段等都不一样的, 你看看;
其实原理都一样的。
[ 本帖最后由 scmtata 于 2007-12-27 11:18 编辑 ]