Hi,
I have a set of product data. For each customer, each product has a discount and a category. I need to select distinct the catgory and the discounts and order the data in the following way (discount ascending).
Like this:
category discount
cat 1 5%
cat 2 6%
cat 3 7%
cat 1 10%
cat 4 10%
I have no problem selecting and reporting on the data, but I need a third column of info to say that the category has multiple discounts (cat 1 in the example appears twice meaning it has products in it with two different discounts)
eg:
category discount multiple
cat 1 5% yes
cat 2 6%
cat 3 7%
cat 1 10% yes
cat 4 10%
Problem is I haven't a clue how to achieve this! Can anyone help?
Thanks
Marc
I have a set of product data. For each customer, each product has a discount and a category. I need to select distinct the catgory and the discounts and order the data in the following way (discount ascending).
Like this:
category discount
cat 1 5%
cat 2 6%
cat 3 7%
cat 1 10%
cat 4 10%
I have no problem selecting and reporting on the data, but I need a third column of info to say that the category has multiple discounts (cat 1 in the example appears twice meaning it has products in it with two different discounts)
eg:
category discount multiple
cat 1 5% yes
cat 2 6%
cat 3 7%
cat 1 10% yes
cat 4 10%
Problem is I haven't a clue how to achieve this! Can anyone help?
Thanks
Marc