0
requestid Date
2 12/22/2016 23:21
3 12/22/2016 23:21
1 12/22/2016 23:21
37 12/22/2016 23:20
156 12/22/2016 23:20
請問有人請幫忙我想知道時間requestid 1和156之間的區別?Oracle 10g知道一個表中兩行之間的時間差
我試過下面的查詢,但沒有得到正確的輸出。
Select A.IFCOMPONENTUID,A.FPROCSTAGESTARTDT, (A.FPROCSTAGESTARTDT - B.FPROCSTAGESTARTDT) AS timedifference from XA_CASA.CFX_FILE_PROC_STAT A
where INNER JOIN XA_CASA.CFX_FILE_PROC_STAT B On A.IFCOMPONENTUID = (B.IFCOMPONENTUID + 155) and
order by FILERUNTIMEUID desc