Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Understanding TRUNC in SELECT/UPDATE
Hi,
You can't combine a subquery and a mathematical function. Try: UPDATE TEST A SET DAYSTONEXTDATE = TRUNC((SELECT MIN(STARTDATE)-TRUNC(A.STARTDATE) FROM TEST WHERE STARTDATE > A.STARTDATE)) - TRUNC(A.STARTDATE); Regards,
Arian Received on Fri Feb 24 2006 - 08:18:52 CST