So i'm a newbie at programming and i need to store data.I have created Service-Based Database for store the data and i have a table like this.
gameprice | gamedesc | gametotal |
---|---|---|
60 | RDR2 | |
40 | R6S |
I want to take gameprice column, sum it, and write to gametotal. I mean even if i add another game it will add new game price to current gametotal.
Select Sum(gameprice) as gametotal From gametable
like this
gameprice | gamedesc | gametotal |
---|---|---|
60 | RDR2 | 100 |
40 | R6S |
gameprice | gamedesc | gametotal |
---|---|---|
60 | RDR2 | 160 |
40 | R6S | |
60 | DyingL2 |