1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| create table storage_history
( partner integer not null
, article integer not null
, movement_date date not null
, quantity decimal(9,2) not null
, is_inventory char(1) not null
)
;
insert into storage_history
values (376, 013, '2020-10-05', 001, 'F')
, (376, 002, '2020-10-05', 014, 'F')
, (376, 003, '2020-10-05', 002, 'F')
, (376, 004, '2020-10-05', 002, 'F')
, (341, 004, '2020-10-05', 001, 'F')
, (341, 002, '2020-10-05', 014, 'F')
, (341, 007, '2020-10-05', 001, 'F')
, (341, 010, '2020-10-05', 001, 'F')
, (148, 002, '2020-12-17', 003, 'F')
, (259, 002, '2020-12-07', 000, 'V')
, (259, 007, '2020-12-07', 000, 'V')
, (259, 006, '2020-12-07', 000, 'V')
, (259, 005, '2020-12-07', 000, 'V')
, (259, 013, '2020-12-07', 000, 'V')
, (259, 003, '2020-12-07', 000, 'V')
, (259, 012, '2020-12-07', 000, 'V')
, (259, 004, '2020-12-07', 000, 'V')
, (279, 002, '2020-12-09', 003, 'V')
, (279, 003, '2020-12-09', 001, 'V')
, (279, 013, '2020-12-09', 000, 'V')
, (279, 011, '2020-12-09', 000, 'V')
, (376, 013, '2020-08-06', 005, 'V') -- ligne ajoutée
, (376, 002, '2020-08-06', 004, 'V') -- ligne ajoutée
; |