add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
date qty stock
2018-01-01 00:00:00 100 100
2018-01-02 00:00:00 100 200
2018-01-03 00:00:00 100 300
2018-01-04 00:00:00 100 400
2018-01-05 00:00:00 100 500
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD @acm := @acm + qty as stock
(SELECT @acm := 0) x' at line 2
code qty date
123 100 2018-01-01 00:00:00
123 100 2018-01-02 00:00:00
123 100 2018-01-03 00:00:00
123 100 2018-01-04 00:00:00
123 100 2018-01-05 00:00:00
View's SELECT contains a variable or parameter
Table 'fiddle_LFQAIJCUCJHYQSLOWOZC.transactions' doesn't exist