Hi I am trying to solve a problem for a project and need some help
I need to create a trigger to stop an insert into salary table if the employee status is inactive.
Employee
empno | ename | status |
1078465200 | ken | active |
2090897300 | jen | active |
3678888900 | izu | inactive |
Salary
syno | Amount | empno |
4009876660 | 800000 | 1078465200 |
5076545600 | 899000 | 2090897300 |