By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
EmployeeID | SaleDate | SaleAmount |
---|---|---|
1 | 2022-06-01 | 10 |
1 | 2022-06-02 | 20 |
1 | 2022-06-03 | 30 |
2 | 2022-06-01 | 10 |
2 | 2022-06-02 | 10 |
2 | 2022-06-03 | 10 |
EmployeeID | SaleDate | SaleAmount | RunningTotal |
---|---|---|---|
1 | 2022-06-01 | 10 | 10 |
1 | 2022-06-02 | 20 | 30 |
1 | 2022-06-03 | 30 | 60 |
2 | 2022-06-01 | 10 | 10 |
2 | 2022-06-02 | 10 | 20 |
2 | 2022-06-03 | 10 | 30 |
EmployeeID | SaleDate | SaleAmount | RunningTotal |
---|---|---|---|
1 | 2022-06-01 | 10 | 20 |
2 | 2022-06-01 | 10 | 20 |
2 | 2022-06-02 | 10 | 50 |
1 | 2022-06-02 | 20 | 50 |
1 | 2022-06-03 | 30 | 90 |
2 | 2022-06-03 | 10 | 90 |
EmployeeID | SaleDate | SaleAmount | RunningTotal |
---|---|---|---|
1 | 2022-06-01 | 10 | 10 |
2 | 2022-06-01 | 10 | 20 |
1 | 2022-06-02 | 20 | 40 |
2 | 2022-06-02 | 10 | 50 |
1 | 2022-06-03 | 30 | 80 |
2 | 2022-06-03 | 10 | 90 |