Skip to content
Advertisement

Joining back on the same table in SQL server

I have a table like below

enter image description here

And the output I require is

Output

The match is defined on the basis of PO number. If PO number exists in both the sources then it should be match else only in AAP and only in SNW respectively. Can this be achieved?

Thanks, Ani

Advertisement

Answer

or

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement