I have been searching ALL OVER THE WEB for an answer I got to the following question but I cannot seem to find it. I have been looking for over an hour :( Well, here goes:I have some fields in my database that I need multiplied together:UserID | Price | Volume----------------------- 1 | 2 | 200 1 | 3 | 500 1 | 2 | 100-----------------------This sql doesn't make any sense but I need something close to this if possible:SELECT UserID, PRODUCT(Price), SUM(Volume)FROM tableGROUP BY UserIDAnd the result should be:UserID | Price | Volume----------------------- 1 | 12 | 800
Is this possible? Anybody knows how to do it?--Lumbago"Real programmers don't document, if it was hard to write it should be hard to understand"