i'm having a sql table consisting of three columns ID,KEY and VALUE
now i want to update this table's specific rows based the KEY column associated with that row.
i tried following UPDATE query to update multiple rows in a single update query.
UPDATE TABLE_NAME
SET VALUE=(CASE WHEN [KEY]='KEY1' THEN 'VALUE 1 MODIFIED'
WHEN [KEY]='KEY3' THEN 'VALUE 3 MODIFIED'
END)
but this query updated the unmatched rows with NULL value as shown in below fig.

is their any other way to write single UPDATE query to modify different columns based on different conditions?
ELSE VALUE ENDin theCASEstatement. If nowhenmatches, theCASEreturns null.