I am working on sqlite 1st time  
I have need help on following problem  
I have 2 tables as follows
test1
key value
a    1  
b    2  
c    3  
e    7  
f    41  
j    52  
test2
key value  
a    null  
b    null  
c    null  
d    null  
e    null  
f    null  
g    null  
j    null  
I am trying to updating values of test2 if key in table test2 = test1 then update value or else put null
expected output is like this
test2
key value  
a    1  
b    2  
c    3  
d    null  
e    7  
f    41  
g    null  
j    52  
I try this query
insert into test2([value])
select test1.value  
from test1, test2  
where test2.value= test1.value;
but it not working  
how to solve this? 
 
     
     
     
    