I have to queries on which I am applying a union function.
select item, loc, qty from rms_transfer
union
select item, loc, qty from sim_transfer
wherever item and loc are same in both the queries, the qty of both the queries should add up in in the final result.
How do we achieve that ?