WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

mysql not retrieving the same data twice help

elliott

New member

0

0%

Status

Offline

Posts

36

Likes

0

Rep

0

Bits

190

8

Months of Service

0%
I am trying to write a query that calculates the total revenue of products purchased in April. However, if the same product is purchased more than once in April, it is not included in the total amount. For example, if Ahmet bought an iPhone for 3000 lira each in April, and Mehmet also bought one, the total should show 6000 lira instead of 3000 lira. I believe the issue lies with the urun_id, but I have not come up with a solution. Your help is appreciated. Best regards.
 

254

6,645

6,665

Top