mrchonginhk
Well-known Member
- Joined
- Dec 3, 2004
- Messages
- 679
Pls help...
I have a table like this
ID , Rate
==========
1, 0.2
2, 0.5
3, 0.3
I want the query
ID , Rate, result
==========
1, 0.2, 0.2
2, 0.5 , 0.1
3, 0.3, 0.03
What is the SQL to achieve this ? Any idea and interim table needed ?
ie, accumulate multiplication (instead of sum) is needed...
Thanks
I have a table like this
ID , Rate
==========
1, 0.2
2, 0.5
3, 0.3
I want the query
ID , Rate, result
==========
1, 0.2, 0.2
2, 0.5 , 0.1
3, 0.3, 0.03
What is the SQL to achieve this ? Any idea and interim table needed ?
ie, accumulate multiplication (instead of sum) is needed...
Thanks
Last edited: