I have an employee table which contains the fields EmpId,EmpName,DeptId,DateOfJoin,Sal,Addr
how to write a trigger for this table such that
whenever a new employee is added to the employee table one row should be added in the Finance table(ID,SAL) for that employee and update Department table(DeptId,DeptName,NoOfEmployees)
such that Department.NoOfEmployees = Department.NoOfEmployees + 1
and whenever an employee s deleted the reverse operation shud take place
and also Whenever the salary field is updated the difference should be updated in the finance table.
Please tell me how to use Insert,Update Delete triggers for this table?