Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL: Getting the difference of two date fields in seconds.
I am new to news groups and I hope I did this correctly...
SELECT ROUND(MONTHS_BETWEEN(datefield1,datefield2) * 31) FROM table1
Jerel Thompson wrote:
Hi,Received on Fri Jul 16 1999 - 13:51:08 CDTI have two date fields. A start date and an end date. How do I find
the difference of the two dates in seconds in SQL? I am using Oracle 8.0
for linux.
![]() |
![]() |