I came across situation where now I want to update the table but i want values which will come from another table. I have written fowllowing SQL , I am sure this is very foolish question , but this is last patterm which will complete my module and need to do this ASAP
UPDATE t 
SET t.col1 = o.col1, 
    t.col2 = o.col2
FROM 
    other_table o 
WHERE 
    o.sql = 'cool'
 
     
    