Forum Moderators: open
the query is as follows
SELECT sum(xo.OrderTotal) AS total, xo.order_currency_code, xc.value FROM orders xo INNER JOIN currency xc ON xo.order_currency_code = xc.code WHERE xo.id = 3 GROUP BY xo.order_currency_code
but it results in the total value being triple of what it should be!
If join is removed, it gives the expected result..
kindly help