Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

performance operations based on Column values in SQL server 2008

$
0
0

Hi ,

I have a table which consist of following columns

ID    Formula              Values                 DisplayValue

1                    a*b/100       100*12/100          null

2                    b*c/100        12*4/100              null

I want to perform operation based on column "Values" and save data after operations in new column Name "Display Value" .i.e I want to get the below result . Can anyone please help.

ID    Formula              Values                 DisplayValue

1                    a*b/100       100*12/100          12

2                    b*c/100        12*4/100             0.48

Thanks for the help.


Regards, Priti A


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>