Consider this data set:
custid Factor ----------- ----------- 1 2 1 3 2 4 2 5 2 2 3 6 3 7 3 3 4 8 4 9To produce this result set:
custid Product ----------- ---------- 1 6 2 40 3 126 4 72Here's the code:
select custid, POWER(10.,SUM(LOG10(Factor))) from SampleTable group by custidAs usual, comments are welcome...
~~ CK