select distinct T1.a1, T2.a1
from T1, T2, T3 where
T2.name='Something' and T2.value is not null and
T2.a1=T3.a1 and T1.a2=T3.a2 and
T1.a3='Something' and T1.a4 is null
I have values populated in T2 and its missing in T1.
I have to update T1 value with T2 value. The SELECT sql is bringing values properly. But I am not able to come up with the UPDATE sql for ORACLE database.