on-internet
← Community

Insert monthly payroll records per employee

Stack Overflow ·

I need to make a stored procedure to insert employees monthly salary in there payroll table. Can anybody give example? There are two tables Employees (EmployeeID, EmployeeName, EmployeeStatus, BasicSalary) and EmployeePayroll (PayrollID, EmployeeID, VoucherNo, BasicSalary, SalaryMonth) Get Total Employees From Employees Table WHERE EmployeeStatus IN ('Active')............for example let's say (50 employees) Make a Loop for all these 50 employees and Insert salary payment voucher in table (EmployeePayroll). In EmployeePayroll table it will be inserted with auto generated voucher no for example:

Comments

Sign in or sign up to comment and upvote.

No comments yet.