This is my example relation that I am working with named 'Balance Sheet' with 4 attributes.
Balance Sheet
| companyTicker | assets | liabilities | equity |
If someone adds a tuple to this relation where (assets != liabilities + equity)
I would like either an error to be thrown saying that the data is invalid, or for the tuple to simply not be added. Should i use a procedure or something like a "before Update" trigger for this?