id data1 data2
1 10 15
2 10 20
I have this table, and I want to add new column (point) in this table.
id data1 data2 point
1 100 105 5
2 100 200 100
I'd like to add this point value by calculating this formula as follows:
point = (data2 - data1)/data1 * 100
How can I add this value into point column?
Please let me know. Thanks