I did the sql coding but im not sure if that is the correct way to do it

see Does this work (update + in ) - #11 by r937