I am trying to run the following sql but am getting an Oracle error ORA-00918: column ambiguously defined
select b.acct_unit, sum(b.budget_amount),
sum(s.spend_amount)
from uabhssd.vwuabbudget b full outer join
uabhssd.vwuabspend s on
b.fiscal_year = s.fiscal_year and
b.acct_period = s.acct_period and
b.account = s.account
group by b.acct_unit, s.acct_unit
it executes fine if I replace the "full outer join" with either "right outer join" or "left outer join", however I need to use the "full outer join" to return the results that my users want.
thoughts, ideas?
select b.acct_unit, sum(b.budget_amount),
sum(s.spend_amount)
from uabhssd.vwuabbudget b full outer join
uabhssd.vwuabspend s on
b.fiscal_year = s.fiscal_year and
b.acct_period = s.acct_period and
b.account = s.account
group by b.acct_unit, s.acct_unit
it executes fine if I replace the "full outer join" with either "right outer join" or "left outer join", however I need to use the "full outer join" to return the results that my users want.
thoughts, ideas?