If I have data in my SQL Server like this:
ID Number
----------------
1 1
1 2
1 3
2 2
2 2
1 0
Then for each ID, I need to multiply all the values of number. In this case for ID = 1
, I need 1*2*3*0
which is 0
How do I do this in SQL Server?