Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: date difference
Try:
select (date1 - date2) * 24 from ....
The minus of dates is the number of days between them.
Hth
bjin
Alex Rivlin wrote:
> All,
> How can I get difference in hours between two date columns ? I found
> function month_between, but it is not straightforward how to get hours
> out of month. Is there any other way then coding for all 30, 31 day
> months, leap years, etc?
>
> Thank you in advance.
> Alex
Received on Tue Mar 30 1999 - 05:59:11 CST