wrap rebuild in a proc
This commit is contained in:
parent
5dc970da3f
commit
eb7f200880
@ -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;
|
Loading…
Reference in New Issue
Block a user