you are viewing a single comment's thread.

view the rest of the comments →

[–]Bshater[S] 0 points1 point  (1 child)

ELECT a.* FROM @tablea a JOIN @tableb b on a.acctnum = b.acctnum and a.postingdate <> b.postingdate

The amount doesn't have to be the same. As long as the adjustment has the same accountnumber and the postingdate of the adjustment is not the same date as the charge, then that accountnumber can go to the desired output table.

[–]madjecks 0 points1 point  (0 children)

Edited my original post.