I have one table1 like this:
col1, col2, col3
A,    B,    4
C,    B,    5
And another table2 like this:   
col1, col2, col4
A,    B,    2
C,    B,    1
C,    C,    3
I want the result after the join to be:
col1, col2, col3,  col4
A,    B,     4       2
C,    B,     5       1
C,    C,     NaN     3
I tried a left outer join like this but it just eliminates that last tuple because C, C doesn't appear in the first table:
drop table if exists merge;    
create table merge as 
select * from table2 s2 left outer join table1 s1 on 'col2' and 'col1';
How do I get the desired result from a join operation?  Thank you.  
 
     
     
     
    