Hi,
What is the best approach to update three tables at a time to avoid concurrency problem. The most important thing here is the data integrity. The application scenario lead clearly to the possibility of updating those tables by two or more sessions at the same time. Reading also from those tables back during the update is passable.
Please how can I write the T-SQL statement to perform the update and which isolation level should I use.
Program Table
ProgramId PK
ProgramName
ApprovedBudgetAmount
ConsumedBudgetAmount
Project Table
ProjectId PK
ProgramId FK
ProjectBudgetAmount
ConsumedBudgetAmount
Claim Table
ClaimId PK
ProjectId FK
ClaimAmount
Samijf