I have a need a update query that will update the Values column for all products_subfamily except "MR TOM", "US" but still update the Values in all other Product_Subfamilies and Blank Product_Subfamiliy in the US which are not MR TOM with the source update table below. Please assist...Thanks in adavance
My Query:
SELECT DISTINCTROW Strat_Price_Tbl.Product_Family, Strat_Price_Tbl.Product_SubFamily, Strat_Price_Tbl.Country
FROM Strat_Price_Tbl INNER JOIN Channel_Value_TBL ON Strat_Price_Tbl.Product_Family = Channel_Value_TBL.PRODUCT_FAMILY
WHERE (((Strat_Price_Tbl.Product_SubFamily) Not In ("MR TOM")) AND ((Strat_Price_Tbl.Country) Not In ("CA")));
[TABLE="width: 496"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]CHANNEL_CODE[/TD]
[TD]PRODUCT_FAMILY[/TD]
[TD]PRODUCT_SUBFAMILY[/TD]
[TD]COUNTRY[/TD]
[TD]CURRENCY[/TD]
[TD]CHANNEL_VALUE[/TD]
[/TR]
[TR]
[TD]Stores[/TD]
[TD]Bar[/TD]
[TD][/TD]
[TD]US[/TD]
[TD]USD[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Markets[/TD]
[TD]Bar[/TD]
[TD][/TD]
[TD]US[/TD]
[TD]USD[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Markets[/TD]
[TD]Bar[/TD]
[TD]MR TOM[/TD]
[TD]US[/TD]
[TD]USD[/TD]
[TD="align: right"]0
[/TD]
[/TR]
</tbody>[/TABLE]
My Query:
SELECT DISTINCTROW Strat_Price_Tbl.Product_Family, Strat_Price_Tbl.Product_SubFamily, Strat_Price_Tbl.Country
FROM Strat_Price_Tbl INNER JOIN Channel_Value_TBL ON Strat_Price_Tbl.Product_Family = Channel_Value_TBL.PRODUCT_FAMILY
WHERE (((Strat_Price_Tbl.Product_SubFamily) Not In ("MR TOM")) AND ((Strat_Price_Tbl.Country) Not In ("CA")));
[TABLE="width: 496"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]CHANNEL_CODE[/TD]
[TD]PRODUCT_FAMILY[/TD]
[TD]PRODUCT_SUBFAMILY[/TD]
[TD]COUNTRY[/TD]
[TD]CURRENCY[/TD]
[TD]CHANNEL_VALUE[/TD]
[/TR]
[TR]
[TD]Stores[/TD]
[TD]Bar[/TD]
[TD][/TD]
[TD]US[/TD]
[TD]USD[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Markets[/TD]
[TD]Bar[/TD]
[TD][/TD]
[TD]US[/TD]
[TD]USD[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Markets[/TD]
[TD]Bar[/TD]
[TD]MR TOM[/TD]
[TD]US[/TD]
[TD]USD[/TD]
[TD="align: right"]0
[/TD]
[/TR]
</tbody>[/TABLE]