Using Oracle 8i
I have a query that returns 3 columns col1, col2, Time_Diff from myTable as shown below. Time_Diff is the difference between a date column (col3) in myTable and SysDate.
Select A.col1, A.col2, B.Time_Diff
from myTable A, (Select (sysdate - col3 ) As "Time_Diff" from Dual) B
Also, I would like Time_Diff to be returned in the format 01:15, meaning the time difference is 1 hour, 15 minutes.
Please help me as I have very limited knowledge of how to write oracle queries.
Thanks
San
Start Free Trial