Hi Everyone,
I want to perform queries that count the number of customers using combinations of different products.
The data is organised like so:
CustomerID ProductType No of Items
1 A 5
1 B 1
1 C 2
2 D 2
3 B 2
3 B 3
and so on.
There are 5 or 6 product types. I need to be able to produce a table showing all the various combinations. For example, number of customers using JUST product type A and nothing else, number of customers using product type A and product type B, customers using product type A, B and C
and so on.
I think there are around 64 different combinations!
I was wondering if there is a quicker way to do this apart from writing 64 different queries!!
Hope this clear and hope someone can help!
thanks!
Sasha.
I want to perform queries that count the number of customers using combinations of different products.
The data is organised like so:
CustomerID ProductType No of Items
1 A 5
1 B 1
1 C 2
2 D 2
3 B 2
3 B 3
and so on.
There are 5 or 6 product types. I need to be able to produce a table showing all the various combinations. For example, number of customers using JUST product type A and nothing else, number of customers using product type A and product type B, customers using product type A, B and C
and so on.
I think there are around 64 different combinations!
I was wondering if there is a quicker way to do this apart from writing 64 different queries!!
Hope this clear and hope someone can help!
thanks!
Sasha.