title: Update not working as required
body: <p>I am having issue with update in table. In my below I have updating flag of column <code>userdeleted</code>, I also want to change the value of that row with <code>CurrentTimestamp</code> value but after I placed a one more condition in <code>SET</code>, my all rows value gets updated to current timestamp.</p>
  
  <pre><code>UPDATE dpuserapplication t1 
  LEFT OUTER JOIN temp_userapplication t2
  ON t1.userName = t2.userName
  AND t1.ApplicationName = t2.ApplicationName
  AND t1.groupName = t2.groupName
  SET t1.userDeleted = CASE WHEN t2.ID IS NULL THEN 1 ELSE 0 END,
  t1.CreatedDate = CURRENT_TIMESTAMP;
  </code></pre>