I have 2 tables with following fields:
Table A
Customer_ID
Sales
Statecode
TableB
Customer_ID
Discount
Table A has something like 200 Customer IDs out of which about 50 Customer IDs also have a discount amount associated with them.
I now want to create a Master Table of 200 customers where I can have all the 4 fields, i.e. Customer_ID, Sales, Statecode and Discount. For those customers who didn’t get any discount, I want a null value in the Discount field.
However if I link the tables using a query, only the customers common on both the tables get selected. Could someone please help me out here.
Regards,
Sagar
Table A
Customer_ID
Sales
Statecode
TableB
Customer_ID
Discount
Table A has something like 200 Customer IDs out of which about 50 Customer IDs also have a discount amount associated with them.
I now want to create a Master Table of 200 customers where I can have all the 4 fields, i.e. Customer_ID, Sales, Statecode and Discount. For those customers who didn’t get any discount, I want a null value in the Discount field.
However if I link the tables using a query, only the customers common on both the tables get selected. Could someone please help me out here.
Regards,
Sagar
Comment