ALTER VIEW `v_stok` AS SELECT `vsh`.`barang_id` AS `barang_id`, SUM(`vsh`.`jumlah`) AS `stok` FROM `v_stok_history` `vsh` GROUP BY `vsh`.`barang_id`;