I work in SQL Developer by Oracle. I want attach dates from table 2 into empty column Date in Table 1 only into existed rows/ids. I tried to do it by below code but it doesn't work. It seems easy, but I couldnt find solution.
Table 1                Table 2
ID   Date              ID   Date
33   (null)            33   2021-01-02
22   (null)            22   2019-01-02
100  (null)            100  1999-09-09
200  (null)            200  2005-06-07
44   (null)            44   2010-02-02
                       999  2009-08-06
insert into table1 (date)
select
t2.date
from table2 t2 where table1.id in (select t2.id from table2);
 
     
    