user-defined scalar function to generate computed column
问题 I have databse having 2 tables i.e (Installment and InstallmentPlan). In the installment table there are number of columns. I want to add one new computed column name SurchargeCalculated (SC). The calculation for SC is this SC = (Installment.Amount * Installment.days * (InstallmentPlan.InstPercentage /365 /100)) I have created user-defined function SurchargeCal having 3 parameters which are Amount, days and InstPercentage. The problem is that when i add computed column in installment table