Trigger To Update A Field When Field In Another Table Is Changed
I have a mysql database and I want a Trigger To Update A Field When Field In Another Table Is Changed.
Table 1 = cases_cstm and Table 2 = Contracts
I have an End date field in both tables.
The Field name under cases_cstm is enddate_c
The field name under Contracts is end_date
I would like when a Case is created to copy the End date from Contracts to Cases
MySQL ServerDatabasesDB Reporting Tools
Last Comment
NerdsOfTech
8/22/2022 - Mon
ste5an
Review your model. This is redundancy at its best.
Pat Shortt
ASKER
I don't understand your comment?
ste5an
Normalization. Why copying a value at all? This value should be stored only once.