Question: Question of plpgsql: Create trigger on the employees table. This time, if the salary is null, set the salary equal to the smallest salary in

Question of plpgsql: Create trigger on the employees table. This time, if the salary is null, set the salary equal to the smallest salary in the employees table + 5000. In other words, if the table has the same three rows as above (question 1), then an insert of (20, Tracy, null) will insert Tracy and set their salary to 40000 (= min salary + 5000) (= 35000 + 5000).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!