wrap rebuild in a proc

This commit is contained in:
Paul Trowbridge 2025-09-16 22:09:10 -04:00
parent 5dc970da3f
commit eb7f200880

View File

@ -1,3 +1,7 @@
CREATE OR ALTER PROCEDURE pricing.rebuild_lastprice
AS
BEGIN
SET NOCOUNT ON;
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Reset target tables -- Reset target tables
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -243,3 +247,4 @@ SELECT
FROM flag_json f FROM flag_json f
FULL OUTER JOIN seg_json s FULL OUTER JOIN seg_json s
ON f.customer = s.customer AND f.partgroup = s.partgroup; ON f.customer = s.customer AND f.partgroup = s.partgroup;
END;