Update Query Help????

Status
Not open for further replies.

Mac1206

Board Regular
Joined
Jun 3, 2016
Messages
184
If Product_SubFamily is blank in my update table(Middle Table), how can I write the query to update the Channel_Value for main Tbl based on the fields available but also include MR TOM who has a value assigned.

Strat_Price Sample MainTbl to Update
Product_Family
Product_SubFamilyCountryCurrencyChannel_CodeChannel_Value
BARMR JEANUSUSDStore
BARMR BILLCAUSDMarkets
BARMR SMITHUSUSDMarkets
BARMR JEANCAUSD
BARMR JONESUSUSD
BARMR JONESUSUSDMarkets
BARMR TOMUSUSDMarkets

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>


Channel_Value Sample Update Tbl (This table need to update main Channel Values Tbl above)
Product_Family
Product_SubFamilyCountryCurrencyChannel_CodeChannel_Value
BARUSUSDStore0
BARUSUSDMarkets40
BARMR TOMUSUSDMarkets0

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>


My Results needed from the Update Tbl
Product_Family
Product_SubFamilyCountryCurrencyChannel_CodeChannel_Value
BARMR JEANUSUSDStore0
BARMR BILLCAUSDMarkets
BARMR SMITHUSUSDMarkets40
BARMR JEANCAUSD
BARMR JONESUSUSDStore0
BARMR JONESUSUSDStore0
BARMR JOHNSONUSUSDStore0
BARMR TOMUSUSDStore0

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,206
Messages
6,123,636
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top