Skip to content
Advertisement

How do I create an automated calculated column?

Help me create a column, that shows the company’s budget. Let’s say we have three tables: Budget, Purchase, and Sale.

When we selling products, the budget increases, when buying raw materials, it decreases. That is, automatically when you add a value to these tables, the budget value immediately changes.

Advertisement

Answer

Use Inserted table inside the Trigger to find the recently inserted record and update the Price amount with the Budget Table.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement