G
Guest
hey all,
I have an un-normalized table named Products which can have several
categories associated with it. Four to be exact.
So I have in this table four different fields that store the same type of
information. i know, iknow...a no, no. But that's what I inherited. But
anyway.
so, here's an example
CategoryID's are:
1=Electronics
2=Household
3=Bath
4=Automotive
Product 1 stores 4,1,null,null
Product 2 stores 1,4,null,null
Product 3 stores 1,2,null,null
What i need to know how to do is: out of a subset of Products i need know
what the percentage of each type is out of that subset. Can someone please
show me some ideas on how to solve this in query?
I have an un-normalized table named Products which can have several
categories associated with it. Four to be exact.
So I have in this table four different fields that store the same type of
information. i know, iknow...a no, no. But that's what I inherited. But
anyway.
so, here's an example
CategoryID's are:
1=Electronics
2=Household
3=Bath
4=Automotive
Product 1 stores 4,1,null,null
Product 2 stores 1,4,null,null
Product 3 stores 1,2,null,null
What i need to know how to do is: out of a subset of Products i need know
what the percentage of each type is out of that subset. Can someone please
show me some ideas on how to solve this in query?