老难的了,我是搞不定,你进来看看?
以下语句执行时长在1秒以内
select T1.STAFF_ID STAFF_ID,
T2.STAFF_NO STAFF_NO,
T2.STAFF_NAME STAFF_NAME,
T4.DEPT_ID DEPT_ID,
T4.DEPT_NAME DEPT_NAME,
T1.CALLER CALLER,
T1.CALLEE CALLEE,
decode(sign(T1.CALL_TIME - to_date( '20050101 ', 'yyyymmdd ')),
1,
to_char(T1.CALL_TIME, 'yyyy/mm/dd hh24:mi:ss '),
'-- ') CALL_TIME,
decode(sign(T1.ANS_TIME - to_date( '20050101 ', 'yyyymmdd ')),
1,
to_char(T1.ANS_TIME, 'yyyy/mm/dd hh24:mi:ss '),
'-- ') ANS_TIME,
decode(sign(T1.CLR_TIME - to_date( '20050101 ', 'yyyymmdd ')),
1,
to_char(T1.CLR_TIME, 'yyyy/mm/dd hh24:mi:ss '),
'-- ') CLR_TIME,
decode(sign(T1.ANS_TIME - to_date( '20050101 ', 'yyyymmdd ')),
&nb