I have two tables tblemployee, tblEmpSalary. I want to take the MonthlySalary form the tblEmployee and multiply it with the attendance in the tblEmpSalary and insert the answer to the tblEmpSalary table totalsalary column. Anyone kindly help me please.
tblEmployee
>EmpId
>Empname
>MonthlySalary
tblEmpSalary
>SalaryId
>EmpId
>Month
>Year
>AttendanceOfCurrentMonth
>TotalSalaryOfMonth
I want the TotalSalaryOfMonth to be the
multiplication of MonthlySalary and AttendanceOfCurrentMonth
for each specific employee