First all both column should have time stored in it wether it in date Datatype or Datetime Datatype .
To get time diff between two date column you can use this single sql statement
Select substr(numtodsinterval([END_TIME]-[START_TIME],0),’day’),12,5) from [TABLE_NAME];
Where [TABLE_NAME] si table where column is stored and [END_TIME],[START_TIME] are the come with date datatype having time stored in it. Out put will be rounded to minutes.
E.g
if Start_Time=12/25/2011 8:40:21 AM
and End_time= 12/25/2011 5:20:21 PM
output will be 08:40
It saves my lot of time to convert and apply math on date columns. Hope its use full for some…