Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Analytics/update question
Hi:
you can do the next:
update table t1
set t1.value = (select t3.value from table t3
where t3.id = t1.id and t3.date = ( select max(tt4.date) from table t4 where t4.id=t3.id andt4.value <> -999.99 ) )
t1.date = (select max(t2.date) from table t2 where t2.id=t1.id):
I hope it's usefull to you
Regards,
Isa
Received on Tue Sep 27 2005 - 06:30:27 CDT
![]() |
![]() |