They are all distinct rows due to the last column, the only way to get rid of them is to sum the funded_amt. something like this:select a.acct, a.posted_amt, a.posted_date, a.acct2050, sum(b.acct2050posted_amt) as acct2050posted_amt, a.acct2050posted_date, a.funded_amtfrom (select acct, posted_amt, posted_date, acct2050, acct2050posted_date, sum(funded_amt) as funded_amtfrom tablegroup byacct, posted_amt, posted_date, acct2050, acct2050posted_datehaving sum(funded_amt) <> 0) ainner join table bon a.acct = b.acctgroup bya.acct, a.posted_amt, a.posted_date, a.acct2050, a.acct2050posted_date, a.funded_amt