I have three tables to create. One of the table has a column that should calculate for a result which affect a single column of each of the other two tables. The three tables have schemas as Managements and Event.The three tables are named: Management.Payments, Management.Events and Event.EventType.
The Management.Payments table owns the columns that must bear the result of the calculation as specified above. The column (Domain or Attribute) is named as Payment Amount. The formula to be used for the calculationis "Payment = ChargePerPerson* NoOfPeople". The "ChargePerPerson" is a column that belongs to "Event.EventType" Table while the "NoOfPeople" is a column that belongs to the "Management.Events" Table.
Hints: I have tried Constraint (check)and it's not working. Later, I figured out thatCheck constraint only affects multiple columns...