I have a table with two fields:
In_date
Out_date
I would like to select those two field and then calculate the elapsed time between Out_date and In_date in hours. How can I do this? Something like this:
In_date Out_date Hours
1:00:00 AM 1/20/2006 1:00:00 PM 1/20/2006 12
1:00:00 AM 1/20/2006 1:00:00 AM 1/21/2006 24
8:00:00 AM 1/20/2006 9:00:00 PM 1/20/2006 1
Thanks,
Shannan
In_date
Out_date
I would like to select those two field and then calculate the elapsed time between Out_date and In_date in hours. How can I do this? Something like this:
In_date Out_date Hours
1:00:00 AM 1/20/2006 1:00:00 PM 1/20/2006 12
1:00:00 AM 1/20/2006 1:00:00 AM 1/21/2006 24
8:00:00 AM 1/20/2006 9:00:00 PM 1/20/2006 1
Thanks,
Shannan