I have a table that looks something like the following :
W1 W2 w3 Gold 10 2 3 Silver 3 1 1
but i
Does this do what you want?
select t.??, t.w1, (t.w1 + t.w2) as w2, (t.w1 + t.w2 + t.w3) as w3 from table1 t;
I don't know what the name of the first column is, so I just used ??.
??