>
select temp.*
DATEDIFF(MI,usDATa+cast(ustime as datetime),usDATa+cast(ustime as datetime)) '時間差(分鐘)'
from temp,(select * from temp) a
where ionno=ionno
and tionno=tionno
and tustype='B'
and tustype='R'
以下是截圖
圖文推薦