create new part master records from clones
This commit is contained in:
parent
c51c8e409b
commit
7facfb963b
@ -1,3 +1,9 @@
|
|||||||
|
DELETE FROM lgdat.stka WHERE v6stat = 'C';
|
||||||
|
DELETE FROM lgdat.stkmm where avtype = 'C';
|
||||||
|
DELETE FROM lgdat.stkmp where awtype = 'C';
|
||||||
|
DELETE FROM lgdat.icstm where cgtype = 'C';
|
||||||
|
DELETE FROM lgdat.icstp where chtype = 'C';
|
||||||
|
DELETE FROM lgdat.icstr where y0type = 'C';
|
||||||
WITH
|
WITH
|
||||||
repl AS (
|
repl AS (
|
||||||
SELECT
|
SELECT
|
||||||
@ -5,178 +11,180 @@ repl AS (
|
|||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
VALUES
|
VALUES
|
||||||
('GAB12000DE2','GAB12000A34C012LRTOQ'),
|
('GAB12000DE2','Garden Bowl - Slate Blue','GAB12000A34C012LRTOQ'),
|
||||||
('GAB14000DE2','GAB14000A34C012LRTOT'),
|
('GAB14000DE2','Garden Bowl - Slate Blue','GAB14000A34C012LRTOT'),
|
||||||
('GAB18000DE2','GAB18000A34C006LRTOW'),
|
('GAB18000DE2','Garden Bowl - Slate Blue','GAB18000A34C006LRTOW'),
|
||||||
('GAB22000DE2','GAB22000A34C006LRTOZ'),
|
('GAB22000DE2','Garden Bowl - Slate Blue','GAB22000A34C006LRTOZ'),
|
||||||
('GAB12000BG3','GAB12000A34C012LRTOQ'),
|
('GAB12000BG3','Garden Bowl - Teal','GAB12000A34C012LRTOQ'),
|
||||||
('GAB14000BG3','GAB14000A34C012LRTOT'),
|
('GAB14000BG3','Garden Bowl - Teal','GAB14000A34C012LRTOT'),
|
||||||
('GAB18000BG3','GAB18000A34C006LRTOW'),
|
('GAB18000BG3','Garden Bowl - Teal','GAB18000A34C006LRTOW'),
|
||||||
('GAB22000BG3','GAB22000A34C006LRTOZ'),
|
('GAB22000BG3','Garden Bowl - Teal','GAB22000A34C006LRTOZ'),
|
||||||
('CNA06000A42','CNA06000A50C024LRCGA'),
|
('CNA06000A42','Caribbean Planter - Warm Gray','CNA06000A50C024LRCGA'),
|
||||||
('CNA08000A42','CNA08000A50C024LRCGC'),
|
('CNA08000A42','Caribbean Planter - Warm Gray','CNA08000A50C024LRCGC'),
|
||||||
('CNA06000F89','CNA06000A50C024LRCGA'),
|
('CNA06000F89','Caribbean Planter - Raspberry','CNA06000A50C024LRCGA'),
|
||||||
('CNA08000F89','CNA08000A50C024LRCGC'),
|
('CNA08000F89','Caribbean Planter - Raspberry','CNA08000A50C024LRCGC'),
|
||||||
('CNA10000F89','CNA10000A42C012LRBXI'),
|
('CNA10000F89','Caribbean Planter - Raspberry','CNA10000A42C012LRBXI'),
|
||||||
('CNA12000F89','CNA12000A42C012LRBXJ'),
|
('CNA12000F89','Caribbean Planter - Raspberry','CNA12000A42C012LRBXJ'),
|
||||||
('CNA06000BG3','CNA06000A50C024LRCGA'),
|
('CNA06000BG3','Caribbean Planter - Teal','CNA06000A50C024LRCGA'),
|
||||||
('CNA08000BG3','CNA08000A50C024LRCGC'),
|
('CNA08000BG3','Caribbean Planter - Teal','CNA08000A50C024LRCGC'),
|
||||||
('CNA10000BG3','CNA10000A42C012LRBXI'),
|
('CNA10000BG3','Caribbean Planter - Teal','CNA10000A42C012LRBXI'),
|
||||||
('CNA12000BG3','CNA12000A42C012LRBXJ'),
|
('CNA12000BG3','Caribbean Planter - Teal','CNA12000A42C012LRBXJ'),
|
||||||
('CNA06000A10','CNA06000A50C024LRCGA'),
|
('CNA06000A10','Caribbean Planter - White','CNA06000A50C024LRCGA'),
|
||||||
('CNA08000A10','CNA08000A50C024LRCGC'),
|
('CNA08000A10','Caribbean Planter - White','CNA08000A50C024LRCGC'),
|
||||||
('CNA10000A10','CNA10000A42C012LRBXI'),
|
('CNA10000A10','Caribbean Planter - White','CNA10000A42C012LRBXI'),
|
||||||
('CNA12000A10','CNA12000A42C012LRBXJ'),
|
('CNA12000A10','Caribbean Planter - White','CNA12000A42C012LRBXJ'),
|
||||||
('CNA30000A10','CNA30000G18C002LRCDG'),
|
('CNA30000A10','Caribbean Planter - White','CNA30000G18C002LRCDG'),
|
||||||
('LIA06000DE2','LIA06000A34C024LRTIV'),
|
('LIA06000DE2','Classic Planter - Slate Blue','LIA06000A34C024LRTIV'),
|
||||||
('LIA08000DE2','LIA08000A34C024LRTIZ'),
|
('LIA08000DE2','Classic Planter - Slate Blue','LIA08000A34C024LRTIZ'),
|
||||||
('LIA10000DE2','LIA10000A34C012LRTJD'),
|
('LIA10000DE2','Classic Planter - Slate Blue','LIA10000A34C012LRTJD'),
|
||||||
('LIA12000DE2','LIA12000A34C012LRTJH'),
|
('LIA12000DE2','Classic Planter - Slate Blue','LIA12000A34C012LRTJH'),
|
||||||
('LIA14000DE2','LIA14000A34C012LRTJL'),
|
('LIA14000DE2','Classic Planter - Slate Blue','LIA14000A34C012LRTJL'),
|
||||||
('LIA16000DE2','LIA16000A34C006LRTJP'),
|
('LIA16000DE2','Classic Planter - Slate Blue','LIA16000A34C006LRTJP'),
|
||||||
('LIA20000DE2','LIA20000A34C006LRTJT'),
|
('LIA20000DE2','Classic Planter - Slate Blue','LIA20000A34C006LRTJT'),
|
||||||
('LIA24000DE2','LIA24000A34C006LRTJY'),
|
('LIA24000DE2','Classic Planter - Slate Blue','LIA24000A34C006LRTJY'),
|
||||||
('LIA06000B78','LIA06000A34C024LRTIV'),
|
('LIA06000B78','Classic Planter - Seafoam','LIA06000A34C024LRTIV'),
|
||||||
('LIA08000B78','LIA08000A34C024LRTIZ'),
|
('LIA08000B78','Classic Planter - Seafoam','LIA08000A34C024LRTIZ'),
|
||||||
('LIA10000B78','LIA10000A34C012LRTJD'),
|
('LIA10000B78','Classic Planter - Seafoam','LIA10000A34C012LRTJD'),
|
||||||
('LIA12000B78','LIA12000A34C012LRTJH'),
|
('LIA12000B78','Classic Planter - Seafoam','LIA12000A34C012LRTJH'),
|
||||||
('LIA14000B78','LIA14000A34C012LRTJL'),
|
('LIA14000B78','Classic Planter - Seafoam','LIA14000A34C012LRTJL'),
|
||||||
('LIA16000B78','LIA16000A34C006LRTJP'),
|
('LIA16000B78','Classic Planter - Seafoam','LIA16000A34C006LRTJP'),
|
||||||
('LIA20000B78','LIA20000A34C006LRTJT'),
|
('LIA20000B78','Classic Planter - Seafoam','LIA20000A34C006LRTJT'),
|
||||||
('LIA24000B78','LIA24000A34C006LRTJY'),
|
('LIA24000B78','Classic Planter - Seafoam','LIA24000A34C006LRTJY'),
|
||||||
('SLI06000DE2','SLI06000A34C024LRTKB'),
|
('SLI06000DE2','Classic Saucer - Slate Blue','SLI06000A34C024LRTKB'),
|
||||||
('SLI08000DE2','SLI08000A34C024LRTKF'),
|
('SLI08000DE2','Classic Saucer - Slate Blue','SLI08000A34C024LRTKF'),
|
||||||
('SLI10000DE2','SLI10000A34C012LRTKJ'),
|
('SLI10000DE2','Classic Saucer - Slate Blue','SLI10000A34C012LRTKJ'),
|
||||||
('SLI12000DE2','SLI12000A34C012LAH13'),
|
('SLI12000DE2','Classic Saucer - Slate Blue','SLI12000A34C012LAH13'),
|
||||||
('SLI14000DE2','SLI14000A34C012LAH16'),
|
('SLI14000DE2','Classic Saucer - Slate Blue','SLI14000A34C012LAH16'),
|
||||||
('SLI17000DE2','SLI17000A34C012LAH19'),
|
('SLI17000DE2','Classic Saucer - Slate Blue','SLI17000A34C012LAH19'),
|
||||||
('SLI20000DE2','SLI20000A34C006LAH24'),
|
('SLI20000DE2','Classic Saucer - Slate Blue','SLI20000A34C006LAH24'),
|
||||||
('SLI24000DE2','SLI24000A34C006LRTLD'),
|
('SLI24000DE2','Classic Saucer - Slate Blue','SLI24000A34C006LRTLD'),
|
||||||
('SLI06000B78','SLI06000A34C024LRTKB'),
|
('SLI06000B78','Classic Saucer - Seafoam','SLI06000A34C024LRTKB'),
|
||||||
('SLI08000B78','SLI08000A34C024LRTKF'),
|
('SLI08000B78','Classic Saucer - Seafoam','SLI08000A34C024LRTKF'),
|
||||||
('SLI10000B78','SLI10000A34C012LRTKJ'),
|
('SLI10000B78','Classic Saucer - Seafoam','SLI10000A34C012LRTKJ'),
|
||||||
('SLI12000B78','SLI12000A34C012LAH13'),
|
('SLI12000B78','Classic Saucer - Seafoam','SLI12000A34C012LAH13'),
|
||||||
('SLI14000B78','SLI14000A34C012LAH16'),
|
('SLI14000B78','Classic Saucer - Seafoam','SLI14000A34C012LAH16'),
|
||||||
('SLI16000B78','SAA14001A10C006LRCDJ'),
|
('SLI16000B78','Classic Saucer - Seafoam','SAA14001A10C006LRCDJ'),
|
||||||
('SLI20000B78','SLI20000A34C006LAH24'),
|
('SLI20000B78','Classic Saucer - Seafoam','SLI20000A34C006LAH24'),
|
||||||
('SLI24000B78','SLI24000A34C006LRTLD'),
|
('SLI24000B78','Classic Saucer - Seafoam','SLI24000A34C006LRTLD'),
|
||||||
('ECA06000DE2','ECA06000A101009LRCIG'),
|
('ECA06000DE2','Eclipse Planter - Slate Blue','ECA06000A101009LRCIG'),
|
||||||
('ECA08000DE2','ECA08000A101006LRCID'),
|
('ECA08000DE2','Eclipse Planter - Slate Blue','ECA08000A101006LRCID'),
|
||||||
('ECA10000DE2','ECA10000A341020LRCEL'),
|
('ECA10000DE2','Eclipse Planter - Slate Blue','ECA10000A341020LRCEL'),
|
||||||
('ECA12000DE2','ECA12000A101006LRCIA'),
|
('ECA12000DE2','Eclipse Planter - Slate Blue','ECA12000A101006LRCIA'),
|
||||||
('ECA16000DE2','ECA16000A34C010LRCEX'),
|
('ECA16000DE2','Eclipse Planter - Slate Blue','ECA16000A34C010LRCEX'),
|
||||||
('ECA20000DE2','ECA20000A341006LRCEU'),
|
('ECA20000DE2','Eclipse Planter - Slate Blue','ECA20000A341006LRCEU'),
|
||||||
('ECA06000B78','ECA06000A101009LRCIG'),
|
('ECA06000B78','Eclipse Planter - Seafoam','ECA06000A101009LRCIG'),
|
||||||
('ECA08000B78','ECA08000A101006LRCID'),
|
('ECA08000B78','Eclipse Planter - Seafoam','ECA08000A101006LRCID'),
|
||||||
('ECA10000B78','ECA10000A341020LRCEL'),
|
('ECA10000B78','Eclipse Planter - Seafoam','ECA10000A341020LRCEL'),
|
||||||
('ECA12000B78','ECA12000A101006LRCIA'),
|
('ECA12000B78','Eclipse Planter - Seafoam','ECA12000A101006LRCIA'),
|
||||||
('ECA16000B78','ECA16000A34C010LRCEX'),
|
('ECA16000B78','Eclipse Planter - Seafoam','ECA16000A34C010LRCEX'),
|
||||||
('ECA20000B78','ECA20000A341006LRCEU'),
|
('ECA20000B78','Eclipse Planter - Seafoam','ECA20000A341006LRCEU'),
|
||||||
('GDP08000DE2','SAA14001A10C006LRCDJ'),
|
('GDP08000DE2','Hanging Garden Planter - Slate Blue','SAA14001A10C006LRCDJ'),
|
||||||
('GDP08000BG3','SAA14001A10C006LRCDJ'),
|
('GDP08000BG3','Hanging Garden Planter - Teal','SAA14001A10C006LRCDJ'),
|
||||||
('MSA12001DE2','MSA12001A341008LRCFQ'),
|
('MSA12001DE2','Marina Planter - Slate Blue','MSA12001A341008LRCFQ'),
|
||||||
('MSA16001DE2','MSA16001A34C004LRAYN'),
|
('MSA16001DE2','Marina Planter - Slate Blue','MSA16001A34C004LRAYN'),
|
||||||
('MSA20001DE2','MSA20001A34C004LRCFW'),
|
('MSA20001DE2','Marina Planter - Slate Blue','MSA20001A34C004LRCFW'),
|
||||||
('MSA12001A42','MSA12001A341008LRCFQ'),
|
('MSA12001A42','Marina Planter - Warm Gray','MSA12001A341008LRCFQ'),
|
||||||
('MSA16001A42','MSA16001A34C004LRAYN'),
|
('MSA16001A42','Marina Planter - Warm Gray','MSA16001A34C004LRAYN'),
|
||||||
('MSA20001A42','MSA20001A34C004LRCFW'),
|
('MSA20001A42','Marina Planter - Warm Gray','MSA20001A34C004LRCFW'),
|
||||||
('MSA12001B78','MSA12001A341008LRCFQ'),
|
('MSA12001B78','Marina Planter - Seafoam','MSA12001A341008LRCFQ'),
|
||||||
('MSA16001B78','MSA16001A34C004LRAYN'),
|
('MSA16001B78','Marina Planter - Seafoam','MSA16001A34C004LRAYN'),
|
||||||
('MSA20001B78','MSA20001A34C004LRCFW'),
|
('MSA20001B78','Marina Planter - Seafoam','MSA20001A34C004LRCFW'),
|
||||||
('SEA07001DE2','SEA07001B15C008LRAZR'),
|
('SEA07001DE2','Sedona Planter - Slate Blue','SEA07001B15C008LRAZR'),
|
||||||
('SEA09001DE2','SEA09001B15C008LRAZS'),
|
('SEA09001DE2','Sedona Planter - Slate Blue','SEA09001B15C008LRAZS'),
|
||||||
('SEA12001DE2','SEA12001B15C006LRAZU'),
|
('SEA12001DE2','Sedona Planter - Slate Blue','SEA12001B15C006LRAZU'),
|
||||||
('SEA14001DE2','SEA14001B15C006LRAZT'),
|
('SEA14001DE2','Sedona Planter - Slate Blue','SEA14001B15C006LRAZT'),
|
||||||
('SEA16000DE2','SAA14001A10C006LRCDJ'),
|
('SEA16000DE2','Sedona Planter - Slate Blue','SAA14001A10C006LRCDJ'),
|
||||||
('SEA07001B78','SEA07001B15C008LRAZR'),
|
('SEA07001B78','Sedona Planter - Seafoam','SEA07001B15C008LRAZR'),
|
||||||
('SEA09001B78','SEA09001B15C008LRAZS'),
|
('SEA09001B78','Sedona Planter - Seafoam','SEA09001B15C008LRAZS'),
|
||||||
('SEA12001B78','SEA12001B15C006LRAZU'),
|
('SEA12001B78','Sedona Planter - Seafoam','SEA12001B15C006LRAZU'),
|
||||||
('SEA14001B78','SEA14001B15C006LRAZT'),
|
('SEA14001B78','Sedona Planter - Seafoam','SEA14001B15C006LRAZT'),
|
||||||
('SEA16000B78','SAA14001A10C006LRCDJ'),
|
('SEA16000B78','Sedona Planter - Seafoam','SAA14001A10C006LRCDJ'),
|
||||||
('SEA07001A42','SEA07001B15C008LRAZR'),
|
('SEA07001A42','Sedona Planter - Warm Gray','SEA07001B15C008LRAZR'),
|
||||||
('SEA09001A42','SEA09001B15C008LRAZS'),
|
('SEA09001A42','Sedona Planter - Warm Gray','SEA09001B15C008LRAZS'),
|
||||||
('SEA12001A42','SEA12001B15C006LRAZU'),
|
('SEA12001A42','Sedona Planter - Warm Gray','SEA12001B15C006LRAZU'),
|
||||||
('SEA14001A42','SEA14001B15C006LRAZT'),
|
('SEA14001A42','Sedona Planter - Warm Gray','SEA14001B15C006LRAZT'),
|
||||||
('SEA16000A42','SAA14001A10C006LRCDJ'),
|
('SEA16000A42','Sedona Planter - Warm Gray','SAA14001A10C006LRCDJ'),
|
||||||
('VNP18000A42','VNP18000A34C006LRTPN'),
|
('VNP18000A42','Venetian Flower Box - Warm Gray','VNP18000A34C006LRTPN'),
|
||||||
('VNP24000A42','VNP24000A34C006LRTPR'),
|
('VNP24000A42','Venetian Flower Box - Warm Gray','VNP24000A34C006LRTPR'),
|
||||||
('VNP30000A42','VNP30000A34C006LRTPV'),
|
('VNP30000A42','Venetian Flower Box - Warm Gray','VNP30000A34C006LRTPV'),
|
||||||
('VNP18000A10','VNP18000A34C006LRTPN'),
|
('VNP18000A10','Venetian Flower Box - White','VNP18000A34C006LRTPN'),
|
||||||
('VNP24000A10','VNP24000A34C006LRTPR'),
|
('VNP24000A10','Venetian Flower Box - White','VNP24000A34C006LRTPR'),
|
||||||
('VNP30000A10','VNP30000A34C006LRTPV'),
|
('VNP30000A10','Venetian Flower Box - White','VNP30000A34C006LRTPV'),
|
||||||
('SVN18000A42','SVN18000A34C006LRTPZ'),
|
('SVN18000A42','Venetian Flower Box Tray - Warm Gray','SVN18000A34C006LRTPZ'),
|
||||||
('SVN24000A42','SVN24000A34C006LRTQD'),
|
('SVN24000A42','Venetian Flower Box Tray - Warm Gray','SVN24000A34C006LRTQD'),
|
||||||
('SVN30000A42','SVN30000A34C006LRTQH'),
|
('SVN30000A42','Venetian Flower Box Tray - Warm Gray','SVN30000A34C006LRTQH'),
|
||||||
('SVN18000A10','SVN18000A34C006LRTPZ'),
|
('SVN18000A10','Venetian Flower Box Tray - White','SVN18000A34C006LRTPZ'),
|
||||||
('SVN24000A10','SVN24000A34C006LRTQD'),
|
('SVN24000A10','Venetian Flower Box Tray - White','SVN24000A34C006LRTQD'),
|
||||||
('SVN30000A10','SVN30000A34C006LRTQH'),
|
('SVN30000A10','Venetian Flower Box Tray - White','SVN30000A34C006LRTQH'),
|
||||||
('ASP06000P81','SAA14001A10C006LRCDJ'),
|
('ASP06000P81','Aria Square Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ASP08000P81','SAA14001A10C006LRCDJ'),
|
('ASP08000P81','Aria Square Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ASP10000P81','SAA14001A10C006LRCDJ'),
|
('ASP10000P81','Aria Square Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ASP12000P81','SAA14001A10C006LRCDJ'),
|
('ASP12000P81','Aria Square Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ASP16000P81','SAA14001A10C006LRCDJ'),
|
('ASP16000P81','Aria Square Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ASP06000P80','SAA14001A10C006LRCDJ'),
|
('ASP06000P80','Aria Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ASP08000P80','SAA14001A10C006LRCDJ'),
|
('ASP08000P80','Aria Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ASP10000P80','SAA14001A10C006LRCDJ'),
|
('ASP10000P80','Aria Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ASP12000P80','SAA14001A10C006LRCDJ'),
|
('ASP12000P80','Aria Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ASP16000P80','SAA14001A10C006LRCDJ'),
|
('ASP16000P80','Aria Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ASP06000P26','SAA14001A10C006LRCDJ'),
|
('ASP06000P26','Aria Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ASP08000P26','SAA14001A10C006LRCDJ'),
|
('ASP08000P26','Aria Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ASP10000P26','SAA14001A10C006LRCDJ'),
|
('ASP10000P26','Aria Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ASP12000P26','SAA14001A10C006LRCDJ'),
|
('ASP12000P26','Aria Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ASP16000P26','SAA14001A10C006LRCDJ'),
|
('ASP16000P26','Aria Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ASP06000DE3','SAA14001A10C006LRCDJ'),
|
('ASP06000DE3','Aria Square Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ASP08000DE3','SAA14001A10C006LRCDJ'),
|
('ASP08000DE3','Aria Square Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ASP10000DE3','SAA14001A10C006LRCDJ'),
|
('ASP10000DE3','Aria Square Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ASP12000DE3','SAA14001A10C006LRCDJ'),
|
('ASP12000DE3','Aria Square Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ASP16000DE3','SAA14001A10C006LRCDJ'),
|
('ASP16000DE3','Aria Square Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ARP06000P81','SAA14001A10C006LRCDJ'),
|
('ARP06000P81','Aria Round Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ARP08000P81','SAA14001A10C006LRCDJ'),
|
('ARP08000P81','Aria Round Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ARP10000P81','SAA14001A10C006LRCDJ'),
|
('ARP10000P81','Aria Round Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ARP12000P81','SAA14001A10C006LRCDJ'),
|
('ARP12000P81','Aria Round Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ARP16000P81','SAA14001A10C006LRCDJ'),
|
('ARP16000P81','Aria Round Planter - Fresh Avocado','SAA14001A10C006LRCDJ'),
|
||||||
('ARP06000P80','SAA14001A10C006LRCDJ'),
|
('ARP06000P80','Aria Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ARP08000P80','SAA14001A10C006LRCDJ'),
|
('ARP08000P80','Aria Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ARP10000P80','SAA14001A10C006LRCDJ'),
|
('ARP10000P80','Aria Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ARP12000P80','SAA14001A10C006LRCDJ'),
|
('ARP12000P80','Aria Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ARP16000P80','SAA14001A10C006LRCDJ'),
|
('ARP16000P80','Aria Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('ARP06000P26','SAA14001A10C006LRCDJ'),
|
('ARP06000P26','Aria Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ARP08000P26','SAA14001A10C006LRCDJ'),
|
('ARP08000P26','Aria Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ARP10000P26','SAA14001A10C006LRCDJ'),
|
('ARP10000P26','Aria Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ARP12000P26','SAA14001A10C006LRCDJ'),
|
('ARP12000P26','Aria Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ARP16000P26','SAA14001A10C006LRCDJ'),
|
('ARP16000P26','Aria Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('ARP06000DE3','SAA14001A10C006LRCDJ'),
|
('ARP06000DE3','Aria Round Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ARP08000DE3','SAA14001A10C006LRCDJ'),
|
('ARP08000DE3','Aria Round Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ARP10000DE3','SAA14001A10C006LRCDJ'),
|
('ARP10000DE3','Aria Round Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ARP12000DE3','SAA14001A10C006LRCDJ'),
|
('ARP12000DE3','Aria Round Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ARP16000DE3','SAA14001A10C006LRCDJ'),
|
('ARP16000DE3','Aria Round Planter - Sapphire Blue','SAA14001A10C006LRCDJ'),
|
||||||
('ANP12000A39','SAA14001A10C006LRCDJ'),
|
('ANP12000A39','Aspen Planter - Charcoal','SAA14001A10C006LRCDJ'),
|
||||||
('ANP15000A39','SAA14001A10C006LRCDJ'),
|
('ANP15000A39','Aspen Planter - Charcoal','SAA14001A10C006LRCDJ'),
|
||||||
('ANP17500A39','SAA14001A10C006LRCDJ'),
|
('ANP17500A39','Aspen Planter - Charcoal','SAA14001A10C006LRCDJ'),
|
||||||
('CAS12000P26','SAA14001A10C006LRCDJ'),
|
('CAS12000P26','Cascade Tall Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('CAS15000P26','SAA14001A10C006LRCDJ'),
|
('CAS15000P26','Cascade Tall Square Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('CAS12000P80','SAA14001A10C006LRCDJ'),
|
('CAS12000P80','Cascade Tall Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('CAS15000P80','SAA14001A10C006LRCDJ'),
|
('CAS15000P80','Cascade Tall Square Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('CAR12000P26','SAA14001A10C006LRCDJ'),
|
('CAR12000P26','Cascade Tall Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('CAR15000P26','SAA14001A10C006LRCDJ'),
|
('CAR15000P26','Cascade Tall Round Planter - Black Onyx','SAA14001A10C006LRCDJ'),
|
||||||
('CAR12000P80','SAA14001A10C006LRCDJ'),
|
('CAR12000P80','Cascade Tall Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('CAR15000P80','SAA14001A10C006LRCDJ'),
|
('CAR15000P80','Cascade Tall Round Planter - Glossy White','SAA14001A10C006LRCDJ'),
|
||||||
('SKR12000G27','SAA14001A10C006LRCDJ'),
|
('SKR12000G27','Santa Fe Round Planter - Black Sand','SAA14001A10C006LRCDJ'),
|
||||||
('SKR16000G27','SAA14001A10C006LRCDJ'),
|
('SKR16000G27','Santa Fe Round Planter - Black Sand','SAA14001A10C006LRCDJ'),
|
||||||
('SKR12000E66','SAA14001A10C006LRCDJ'),
|
('SKR12000E66','Santa Fe Round Planter - Cavern Clay','SAA14001A10C006LRCDJ'),
|
||||||
('SKR16000E66','SAA14001A10C006LRCDJ'),
|
('SKR16000E66','Santa Fe Round Planter - Cavern Clay','SAA14001A10C006LRCDJ'),
|
||||||
('SKR12000A56','SAA14001A10C006LRCDJ'),
|
('SKR12000A56','Santa Fe Round Planter - Pebble Gray','SAA14001A10C006LRCDJ'),
|
||||||
('SKR16000A56','SAA14001A10C006LRCDJ'),
|
('SKR16000A56','Santa Fe Round Planter - Pebble Gray','SAA14001A10C006LRCDJ'),
|
||||||
('SKS12000G27','SAA14001A10C006LRCDJ'),
|
('SKS12000G27','Santa Fe Square Planter - Black Sand','SAA14001A10C006LRCDJ'),
|
||||||
('SKS16000G27','SAA14001A10C006LRCDJ'),
|
('SKS16000G27','Santa Fe Square Planter - Black Sand','SAA14001A10C006LRCDJ'),
|
||||||
('SKS12000E66','SAA14001A10C006LRCDJ'),
|
('SKS12000E66','Santa Fe Square Planter - Cavern Clay','SAA14001A10C006LRCDJ'),
|
||||||
('SKS16000E66','SAA14001A10C006LRCDJ'),
|
('SKS16000E66','Santa Fe Square Planter - Cavern Clay','SAA14001A10C006LRCDJ'),
|
||||||
('SKS12000A56','SAA14001A10C006LRCDJ'),
|
('SKS12000A56','Santa Fe Square Planter - Pebble Gray','SAA14001A10C006LRCDJ'),
|
||||||
('SKS16000A56','SAA14001A10C006LRCDJ'),
|
('SKS16000A56','Santa Fe Square Planter - Pebble Gray','SAA14001A10C006LRCDJ'),
|
||||||
('WBP16000P82','SAA14001A10C006LRCDJ')
|
('WBP16000P82','Whiskey Barrel Planter - Aged Oak','SAA14001A10C006LRCDJ'),
|
||||||
) x("target","clone")
|
('0','Planter Trellis 6-Pack - Black','SAA14001A10C006LRCDJ')
|
||||||
|
) x("target","descr","clone")
|
||||||
)
|
)
|
||||||
,istka AS (
|
,istka AS (
|
||||||
|
INSERT INTO lgdat.stka
|
||||||
SELECT
|
SELECT
|
||||||
repl.target v6part
|
repl.target v6part
|
||||||
,v6plnt
|
,v6plnt
|
||||||
@ -374,11 +382,13 @@ repl AS (
|
|||||||
repl
|
repl
|
||||||
INNER JOIN lgdat.stka ON
|
INNER JOIN lgdat.stka ON
|
||||||
v6part = repl.clone
|
v6part = repl.clone
|
||||||
|
RETURNING *
|
||||||
)
|
)
|
||||||
, istkmm AS (
|
, istkmm AS (
|
||||||
|
INSERT INTO lgdat.stkmm
|
||||||
SELECT
|
SELECT
|
||||||
repl.target avparta
|
repl.target avparta
|
||||||
,avdes1
|
,repl.descr avdes1
|
||||||
,avdes2
|
,avdes2
|
||||||
,avdes3
|
,avdes3
|
||||||
,avunti
|
,avunti
|
||||||
@ -613,11 +623,13 @@ repl AS (
|
|||||||
repl
|
repl
|
||||||
INNER JOIN lgdat.stkmm m ON
|
INNER JOIN lgdat.stkmm m ON
|
||||||
m.avpart = repl.clone
|
m.avpart = repl.clone
|
||||||
|
RETURNING *
|
||||||
)
|
)
|
||||||
, istkmp AS (
|
, istkmp AS (
|
||||||
|
INSERT INTO lgdat.stkmp
|
||||||
SELECT
|
SELECT
|
||||||
repl.target awpart
|
repl.target awpart
|
||||||
,awdes1
|
,repl.descr awdes1
|
||||||
,awdes2
|
,awdes2
|
||||||
,awdes3
|
,awdes3
|
||||||
,awunti
|
,awunti
|
||||||
@ -849,13 +861,178 @@ repl AS (
|
|||||||
repl
|
repl
|
||||||
INNER JOIN lgdat.stkmp ON
|
INNER JOIN lgdat.stkmp ON
|
||||||
awpart = repl.clone
|
awpart = repl.clone
|
||||||
|
RETURNING *
|
||||||
)
|
)
|
||||||
, iicstm AS (
|
, iicstm AS (
|
||||||
|
INSERT INTO lgdat.icstm
|
||||||
SELECT
|
SELECT
|
||||||
|
target cgpart
|
||||||
|
,cglabs
|
||||||
|
,cgmats
|
||||||
|
,cgburs
|
||||||
|
,cglaba
|
||||||
|
,cgmata
|
||||||
|
,cgbura
|
||||||
|
,cglabv
|
||||||
|
,cgmatv
|
||||||
|
,cgburv
|
||||||
|
,cgtptd
|
||||||
|
,cgsdat
|
||||||
|
,cgstcs
|
||||||
|
,cgaccs
|
||||||
|
,cgavcs
|
||||||
|
,cgstoc
|
||||||
|
,cgacoc
|
||||||
|
,cgavoc
|
||||||
|
,cgsqty
|
||||||
|
,cgaqty
|
||||||
|
,'C' cgtype
|
||||||
|
,cgbrfs
|
||||||
|
,cgbrvs
|
||||||
|
,cgbrfa
|
||||||
|
,cgbrva
|
||||||
|
,cgbrfv
|
||||||
|
,cgbrvv
|
||||||
|
,cgfuts
|
||||||
|
,cgfuta
|
||||||
|
,cgfutv
|
||||||
|
,cgplnt
|
||||||
|
,cgfut1
|
||||||
|
,cgfut2
|
||||||
|
,cgfut3
|
||||||
|
,cgfut4
|
||||||
|
,cgfut5
|
||||||
|
,cgflg1
|
||||||
|
,cgflg2
|
||||||
|
,cgflg3
|
||||||
FROM
|
FROM
|
||||||
istka
|
repl
|
||||||
INNER JOIN lgdat.icstm ON
|
INNER JOIN lgdat.icstm ON
|
||||||
cgpart = v6part
|
cgpart = clone
|
||||||
AND cgplnt = v6plnt
|
RETURNING *
|
||||||
)
|
)
|
||||||
|
,iicstp AS (
|
||||||
|
INSERT INTO lgdat.icstp
|
||||||
|
SELECT
|
||||||
|
target chpart
|
||||||
|
,chluc
|
||||||
|
,chlcc
|
||||||
|
,chlfc
|
||||||
|
,chldc
|
||||||
|
,chl1c
|
||||||
|
,chl2c
|
||||||
|
,chsuc
|
||||||
|
,chscc
|
||||||
|
,chsfc
|
||||||
|
,chsdc
|
||||||
|
,chs1c
|
||||||
|
,chs2c
|
||||||
|
,chscr
|
||||||
|
,chlcr
|
||||||
|
,chsdat
|
||||||
|
,chstcs
|
||||||
|
,chaccs
|
||||||
|
,chavcs
|
||||||
|
,chsdr
|
||||||
|
,chs1r
|
||||||
|
,chs2r
|
||||||
|
,chldr
|
||||||
|
,chl1r
|
||||||
|
,chl2r
|
||||||
|
,chsqty
|
||||||
|
,chaqty
|
||||||
|
,'C' chtype
|
||||||
|
,chcurr
|
||||||
|
,chsdwc
|
||||||
|
,chacwc
|
||||||
|
,chplnt
|
||||||
|
,chavuc
|
||||||
|
,chavxc
|
||||||
|
,chavdc
|
||||||
|
,chav1c
|
||||||
|
,chav2c
|
||||||
|
,chavfc
|
||||||
|
,chfut1
|
||||||
|
,chfut2
|
||||||
|
,chfut3
|
||||||
|
,chfut4
|
||||||
|
,chfut5
|
||||||
|
,chflg1
|
||||||
|
,chflg2
|
||||||
|
,chflg3
|
||||||
|
,chflg4
|
||||||
|
,chflg5
|
||||||
|
,chflg6
|
||||||
|
,chflg7
|
||||||
|
,chcrcd
|
||||||
|
FROM
|
||||||
|
repl
|
||||||
|
INNER JOIN lgdat.icstp ON
|
||||||
|
chpart = clone
|
||||||
|
RETURNING *
|
||||||
|
)
|
||||||
|
,iicstr AS (
|
||||||
|
INSERT INTO lgdat.icstr
|
||||||
|
SELECT
|
||||||
|
target y0part
|
||||||
|
,y0plnt
|
||||||
|
,y0stcs
|
||||||
|
,y0accs
|
||||||
|
,y0avcs
|
||||||
|
,y0suc
|
||||||
|
,y0sshr
|
||||||
|
,y0sshc
|
||||||
|
,y0soc
|
||||||
|
,y0sdat
|
||||||
|
,y0sqty
|
||||||
|
,y0luc
|
||||||
|
,y0lshc
|
||||||
|
,y0loc
|
||||||
|
,y0aqty
|
||||||
|
,'C' y0type
|
||||||
|
,y0smat
|
||||||
|
,y0slab
|
||||||
|
,y0svbr
|
||||||
|
,y0sfbr
|
||||||
|
,y0sotc
|
||||||
|
,y0lmat
|
||||||
|
,y0llab
|
||||||
|
,y0lvbr
|
||||||
|
,y0lfbr
|
||||||
|
,y0lotc
|
||||||
|
,y0amat
|
||||||
|
,y0alab
|
||||||
|
,y0avbr
|
||||||
|
,y0afbr
|
||||||
|
,y0aotc
|
||||||
|
,y0aunc
|
||||||
|
,y0ashc
|
||||||
|
,y0acrc
|
||||||
|
,y0fut1
|
||||||
|
,y0fut2
|
||||||
|
,y0fut3
|
||||||
|
,y0fut4
|
||||||
|
,y0fut5
|
||||||
|
,y0flg1
|
||||||
|
,y0flg2
|
||||||
|
,y0flg3
|
||||||
|
,y0crcd
|
||||||
|
,y0stcr
|
||||||
|
,y0lscr
|
||||||
|
FROM
|
||||||
|
repl
|
||||||
|
INNER JOIN lgdat.icstr ON
|
||||||
|
clone = y0part
|
||||||
|
RETURNING *
|
||||||
|
)
|
||||||
|
SELECT 'stka', count(*) FROM istka
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'stkmm', count(*) FROM istkmm
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'stkmp', count(*) FROM istkmp
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'icstm', count(*) FROM iicstm
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'icstp', count(*) FROM iicstp
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'icstr', count(*) FROM iicstr;
|
Loading…
Reference in New Issue
Block a user