sql for update? not too sure if its correct

i put the code as comments because im not too sure