H
Haji
Hi,
I am working on a product promtion project. I want to
Identify people who have bought one product but not
another and assign them a certain value. For instance, I
have a table that includes customer name as a row and
products as columns. The values in the fields are
quantities purchased. If they have not bought a product
the quantity value is null. We have four main products we
want to examine: ProductA, ProductB, ProductC and
ProductD. If a Customer has purchased ProductA but not
ProductB then I want to assign them a value of 1 in my
promotion field. If then have bought ProductB but not
ProductC then I want to assign them a value of 2. If
they have bought ProductC but not ProductD then I want to
again assign them a value of 1. If they have bought
ProductD but not ProductA then I want to assign them a
value of 2. All other combinations, I want to assign as
a value of 0 or -1. Can anyone tell me how to do this?
Thanks,
Haji
I am working on a product promtion project. I want to
Identify people who have bought one product but not
another and assign them a certain value. For instance, I
have a table that includes customer name as a row and
products as columns. The values in the fields are
quantities purchased. If they have not bought a product
the quantity value is null. We have four main products we
want to examine: ProductA, ProductB, ProductC and
ProductD. If a Customer has purchased ProductA but not
ProductB then I want to assign them a value of 1 in my
promotion field. If then have bought ProductB but not
ProductC then I want to assign them a value of 2. If
they have bought ProductC but not ProductD then I want to
again assign them a value of 1. If they have bought
ProductD but not ProductA then I want to assign them a
value of 2. All other combinations, I want to assign as
a value of 0 or -1. Can anyone tell me how to do this?
Thanks,
Haji