I am working on a project for a Market (Mini Market). And I want to create a Storage Table where I have all my products. And in this table there is a QUANTITY Column
and the PURCHASE PRICE
Column. And I want to add the TOTAL column. In the total column it should show me the price of:
TOTAL = QUANTITY * PURCHASE PRICE
And I wanted to ask you about how should I do this (TOTAL = QUANTITY * PURCHASE PRICE
)? I there any option to do this while I am creating the Table in SQL SERVER? Or I have to do this in the C# code?
Please help me guys?