Hi Folks,
Last week you folks were kind enough to assist me with a situation where a Self Join solved my issue. I thought I understand Self Joins and have been attempting to get one to work without success for the following issue.
Return set is:
INV Line# PO Desc Acct ID AMT
1 0 123 DESC (null) 0 31.91
1 1 123 (null) E 11130 31.91
1 0 123 Desc 1 (null) 0 66.52
1 1 123 (null) E 11152 66.52
...
I need to "merge" each set of two items into one item to look like this:
INV Line# PO Desc Acct ID AMT
1 0 123 DESC E 11130 31.91
1 0 123 Desc 1 E 11152 66.52
I tried a number of different self joins but could not get the result set I needed.
Thanks!
Tim
Last week you folks were kind enough to assist me with a situation where a Self Join solved my issue. I thought I understand Self Joins and have been attempting to get one to work without success for the following issue.
Return set is:
INV Line# PO Desc Acct ID AMT
1 0 123 DESC (null) 0 31.91
1 1 123 (null) E 11130 31.91
1 0 123 Desc 1 (null) 0 66.52
1 1 123 (null) E 11152 66.52
...
I need to "merge" each set of two items into one item to look like this:
INV Line# PO Desc Acct ID AMT
1 0 123 DESC E 11130 31.91
1 0 123 Desc 1 E 11152 66.52
I tried a number of different self joins but could not get the result set I needed.
Thanks!
Tim