Hi,
I have the below two tables with the mentioned fields and sample rows. Table GL_Ledger X has got a lot of actual details down to GL rows while table Budget Y has got budget amounts by Activity_Seq. I need to come up with one report where I have all fields of table X and one additional field for “AMT” coming from budget using the common filed Activity_seq.
Two issues in my result:
- Duplication of budget amounts (in A1 rows).
- Missing budget for A3 and A5
In other words, want to keep all details and rows of table X and pick up all records from table Y with no duplicates.
Any clues on how to solve this issue? Also if I will use union all, is there an easy way to copy all table X columns properties to table Y and how to do it if that is the only solution.