My scenario is I want to insert value of deptcode like if the deptcode is 1,2 or 3 then it wil dynamically insert in createdby column of the database.