The following is a query that I am trying to run. It runs without any errors, but the data in the table does not get updated. Any clues as to what I am doing wrong?
PARAMETERS PDate DateTime;
INSERT INTO [New Pricing] ( ManufacturerCode, Standard_Pack, [Date], Quantity_1, DistCost_1, SuggSalePrice_1, Quantity_2, DistCost_2, SuggSalePrice_2, Quantity_3, DistCost_3, SuggSalePrice_3, Quantity_4, DistCost_4, SuggSalePrice_4 )
SELECT DISTINCTROW "SIE" AS Expr1, SIE.STDPCKQTY, [PDate]
AS Expr4, SIE.STDPCKQTY, SIE.STDPCKCOST, [STDPCKCOST]*1.25 AS Expr2, SIE.STDPCKQTY, SIE.BRKNPCKCOST, [BRKNPCKCOST]*1.25 AS Expr3, SIE.STDPCKQTY, SIE.DSSTDPCKCOST, [DSSTDPCKCOST]*1.25 AS Expr5, SIE.STDPCKQTY, SIE.DSBRKNPCKCOST, [DSBRKNPCKCOST]*1.25 AS Expr6
FROM SIE;
PARAMETERS PDate DateTime;
INSERT INTO [New Pricing] ( ManufacturerCode, Standard_Pack, [Date], Quantity_1, DistCost_1, SuggSalePrice_1, Quantity_2, DistCost_2, SuggSalePrice_2, Quantity_3, DistCost_3, SuggSalePrice_3, Quantity_4, DistCost_4, SuggSalePrice_4 )
SELECT DISTINCTROW "SIE" AS Expr1, SIE.STDPCKQTY, [PDate]
AS Expr4, SIE.STDPCKQTY, SIE.STDPCKCOST, [STDPCKCOST]*1.25 AS Expr2, SIE.STDPCKQTY, SIE.BRKNPCKCOST, [BRKNPCKCOST]*1.25 AS Expr3, SIE.STDPCKQTY, SIE.DSSTDPCKCOST, [DSSTDPCKCOST]*1.25 AS Expr5, SIE.STDPCKQTY, SIE.DSBRKNPCKCOST, [DSBRKNPCKCOST]*1.25 AS Expr6
FROM SIE;