Correlated Update
345374Nov 4 2002 — edited Jul 15 2003Anyone have a suggestion to get OWB to generate a correlated update? The requirment is to populate a column called intrvl that contains the number of minutes between 2 adjacent effective dated rows. Here's the code that must be implemented...
update tablea t2
set intrvl =
(select (t2.effdate - t1.effdate) * 24 * 60
from tablea t1
where t1.effdate =
(select max(effdate) from tablea
where effdate < t2.effdate))