Auto calculation of Valuation per unit in SQL Server

5 pts.
Tags:
SQL Server 2008
Sir/mam, I have a Table of different product of mutual fund its valuation(nifty level change) is to be calculated. Each product has a different formula which takes input of some variable parameter and some static. How do I calculate row by row formula?
(including Average function for eg, IF(Z>=0%,MAX(0%,49.33%+MAX(0,Z-30%)*-986.6%),MAX(0%,49.33%+MIN(0,Z+30%)*986.6%)))
Thanks in advance!


Software/Hardware used:
sql server 2008 R2
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

What have you tried? Are you using a CASE ?

Can you post your code?

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: