Hi
I am struggleing to create this update statement with a select/group by clause:
UPDATE PP SET PP.Ex = SUM(LPP.Ex)
FROM SM_Prod_Pricing PP
INNER JOIN SM_NFW_Bundle_Pricing_Link BP
ON PP.ID = BP.Pricing_ID
INNER JOIN SM_Prod_Pricing LPP
ON BP.Linked_Pricing_ID = LPP.ID
GROUP BY BP.Pricing_ID
It works fine with the equivelent Select statement but the group by causes an error in the update.
Any assistance would be much appreciated.
Thanks
B
I am struggleing to create this update statement with a select/group by clause:
UPDATE PP SET PP.Ex = SUM(LPP.Ex)
FROM SM_Prod_Pricing PP
INNER JOIN SM_NFW_Bundle_Pricing_Link BP
ON PP.ID = BP.Pricing_ID
INNER JOIN SM_Prod_Pricing LPP
ON BP.Linked_Pricing_ID = LPP.ID
GROUP BY BP.Pricing_ID
It works fine with the equivelent Select statement but the group by causes an error in the update.
Any assistance would be much appreciated.
Thanks
B