I'm just trying to get the sum of money from a column.
SELECT SUM(amount_usd)
FROM WIRE_MSTR, TRANS_MSTR
INNER JOIN WIRE_MSTR ON WIRE_MSTR.trans_id = TRANS_MSTR.trans_id
WHERE WIRE_MSTR.dest_cntry = 'CANADA' AND TRANS_MSTR.trans_yyyymm = '201510';
But on line 4 I get an error "ORA-00918: column ambiguously defined." I've referenced everything, what could be the problem?
SUM(tablename.amount_usd).) - jarlh