For example in hr schema I have to compute and update the interest. Let's say I have an interest of 10 percent, I have to compute that with the salary (Salary*.10) for those employees whose job is 'SA_MAN'. Then the data in the tables should be updated.
So I duplicate the employees table into employees_copy where I added another table which is the interest, I want to create a procedure where it will calculate 10% interest with salary (Salary*.10) but I'm not familiar with the format of the procedure, plus with the condition of the department name 'SA_MAN'.