SQL> select * from test3 ;ID       VALUE                                                                                      
---- ---------                                                                                      
1           11                                                                                      
2           22                                                                                      
3           32                                                                                      
4           42                                                                                      SQL> select * from test4 ;ID       VALUE                                                                                      
---- ---------                                                                                      
1           45                                                                                      
2           35                                                                                      SQL> select a.id,a.value,nvl(b.value,0) value1 
       from test3 a,test4 b 
      where a.id = b.id(+) ;ID       VALUE    VALUE1                                                                            
---- --------- ---------                                                                            
1           11        45                                                                            
2           22        35                                                                            
3           32         0                                                                            
4           42         0