I am trying to create a fleixble (table driven) aggregation query and would appreciate your assistance. I have a table fo revenue values which I need to be able to simply group and change the groupings (without having to change the underlying SQL) any ideas?
e.g
I have a table contaning fields
company
producta
productb
productc
productd
producte
I want to be able to sum the revenues of say products a, b and c and seperately product d and e, but the key thing is that the mapping is stored in a table so all I have to do is change the mapping in a table that looks like
product name group
producta group1
productb group1
productc group1
productd group2
producte group2
Any ideas
Thanks
Andy
e.g
I have a table contaning fields
company
producta
productb
productc
productd
producte
I want to be able to sum the revenues of say products a, b and c and seperately product d and e, but the key thing is that the mapping is stored in a table so all I have to do is change the mapping in a table that looks like
product name group
producta group1
productb group1
productc group1
productd group2
producte group2
Any ideas
Thanks
Andy