Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle and dates
<rsj_at_gisportalen.dk> wrote in message
news:bcfec966.0401070629.4736501b_at_posting.google.com...
> Hi!
>
> I need some help with Oracle and dates! I have two tables in my Oracle
> database. I want to select the rows from the first table, that is 3 or
> more years older than any row in the second table. Can anyone help me?
Well
DATE1 - DATE2 will give the difference between 2 dates and min(datefield) will give you the date of the oldest record in a table, so you ought to be able to get your where clause fairly quickly from the above.
-- Niall Litchfield Oracle DBA Audit Commission UKReceived on Wed Jan 07 2004 - 08:57:14 CST
![]() |
![]() |