hi all. this may be a long shot, but..
I have a table arranged as followed:
CUSTOMER PRODUCT PRODUCT_CATEGORY UNITS SALES
customer1 product1 category1 value value
customer1 product2 category2 value value
etc..
customer2 product1 category1 value value
customer2 product2 category2 value value
etc..
so this table shows what products customers have ordered, what category they fall in (e.g drinks, sweets etc), and the units sold/sales
what I would like is a query that calculates the total sales of each customer, broken down by category - in percentage format. i.e:
CUSTOMER %CATEGORY1_OF_TOTAL %CATEGORY2_OF_TOTAL
customer1 value value
customer2 value value
etc...
can this be done?!
thanks in advence for any help..
Mekon
-------------
I have a table arranged as followed:
CUSTOMER PRODUCT PRODUCT_CATEGORY UNITS SALES
customer1 product1 category1 value value
customer1 product2 category2 value value
etc..
customer2 product1 category1 value value
customer2 product2 category2 value value
etc..
so this table shows what products customers have ordered, what category they fall in (e.g drinks, sweets etc), and the units sold/sales
what I would like is a query that calculates the total sales of each customer, broken down by category - in percentage format. i.e:
CUSTOMER %CATEGORY1_OF_TOTAL %CATEGORY2_OF_TOTAL
customer1 value value
customer2 value value
etc...
can this be done?!
thanks in advence for any help..
Mekon
-------------