mrchonginhk
Well-known Member
- Joined
- Dec 3, 2004
- Messages
- 679
I have Table A like this
Country, Product, Sales
==========
US, A, 100
UK, A, 200
US, B, 150
UK,B, 350
In Table A it is like this
Country, Product, Rate
===============
US, A, 0.9
UK, *, 0.7
I want to join these 2 tables if both Country and Product are same as those in Table B, so that Rate is added to right side of Table A,
and my challenge here is that I need the "*" will select all Products, and so expected outcome is:
Country, Product, Sales, Rate
==========
US, A, 100, 0.9
UK, A, 200, 0.7
UK, B, 350, 0.7
What should be the jet SQL ?
Pls help, thanks
That "*" can also be something else like % etc.
Country, Product, Sales
==========
US, A, 100
UK, A, 200
US, B, 150
UK,B, 350
In Table A it is like this
Country, Product, Rate
===============
US, A, 0.9
UK, *, 0.7
I want to join these 2 tables if both Country and Product are same as those in Table B, so that Rate is added to right side of Table A,
and my challenge here is that I need the "*" will select all Products, and so expected outcome is:
Country, Product, Sales, Rate
==========
US, A, 100, 0.9
UK, A, 200, 0.7
UK, B, 350, 0.7
What should be the jet SQL ?
Pls help, thanks
That "*" can also be something else like % etc.
Last edited: