Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: help with comparing dates and deleteing oldest
delete from assoc a
where exists(select 1 from dbassoc b
where a.dbassoc = b.dbassoc
and trunc(a.dbdate) = trunc(b.dbdate)
and a.dbdate < b.dbdate)
Received on Fri Mar 04 2005 - 14:25:35 CST
![]() |
![]() |