N
N
Nazorin2017-03-26 19:49:01
Database
Nazorin, 2017-03-26 19:49:01

Shortage alert?

How to make a notification when a position is selected in the Employee table and if the remainder is < 0, then a message like: "Please, there is no free position" pops up. Well, if the remainder is 0, then if I want to select this position again, then in the form, when choosing, it will select a message from me. And if this position exists, then -1 is subtracted from the number of employees.
27ee62afe74a4ca0a300fc0ce27eef94.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Skorzhinsky, 2017-03-28
@AndyKorg

Judging by the "trigger" tag, you want to link the number of rows in the Employee table and the "Number_Employees" field in the "Staffing" table through triggers. Hence the solution - create triggers/trigger on the Employee table to control/modify the field Number_of_Employees and triggers on the Staff_schedule table to control the number of entries in the Employee.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question