I have one table with the fields EMPNUM, STSPERCENT, BUDGET.
There are many entries for the EMPNUM and some with only One EMPNUM. Example below:
EMPNUM STSPERCENT BUDGET
1000 500 1200
1000 700 1200
2000 1000 1000
The goal is to 1) GROUP the same EMPNUM
2) Sum(STSPERCENT)
3) Save the Sum(STSPERCENT) Value into Budget for all the same EMPNUM.
Can anyone provide the SQL Statement to accomplish that?
There are many entries for the EMPNUM and some with only One EMPNUM. Example below:
EMPNUM STSPERCENT BUDGET
1000 500 1200
1000 700 1200
2000 1000 1000
The goal is to 1) GROUP the same EMPNUM
2) Sum(STSPERCENT)
3) Save the Sum(STSPERCENT) Value into Budget for all the same EMPNUM.
Can anyone provide the SQL Statement to accomplish that?