回复 楼主 的帖子
select T1.dbid,T1.id,T1.headline,T1.customer_report_no,T1.description,T8.login_name,
T4.company,T1.enddate,T6.action_timestamp-T7.action_timestamp from ICISCR.Defect T1 , ICISCR.users T8
,ICISCR.history T6 , ICISCR.history T7
,ICISCR.parent_child_links T4mm ,
ICISCR.customer T4 where T1.owner = T8.dbid and T1.dbid = T6.entity_dbid
and 16777244 = T6.entitydef_id and T1.dbid = T4mm.parent_dbid and T4mm.child_dbid = T4.dbid
and 16780602 = T4mm.parent_fielddef_id AND T1.dbid <> 0 and T6.action_name = '指派'
and T7.action_name = '提交' and T6.entity_dbid=T7.entity_dbid