add batch remove batch split batch comment selection show hidden batches hide batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
product plant store text week date stock
123456 A123 Z12 HelloWorld 1 2001-01-01 20
123456 A123 Z12 HelloWorld 2 2001-01-08 -15
123456 A123 Z12 HelloWorld 3 2001-01-16 -20
789123 B345 123 HelloWorld1 1 2001-01-01 10
789123 B345 123 HelloWorld1 2 2001-01-08 20
789123 B345 123 HelloWorld1 3 2001-01-16 30
INSERT 0 6
product plant store text date stock
123456 A123 Z12 HelloWorld 2001-01-08 -15
123456 A123 Z12 HelloWorld 2001-01-16 -20
SELECT 2
product plant store text week date stock row_number
SELECT 0
product plant store text week date stock
123456 A123 Z12 HelloWorld 3 2001-01-16 -20
123456 A123 Z12 HelloWorld 1 2001-01-01 20
789123 B345 123 HelloWorld1 3 2001-01-16 30
SELECT 3