Hi
Can anyone know how to link datasouce with similar in left join, below is my sql script and i don’t know how to do this in form datasource join…
select VendTable.AccountNum,
VendTable.Name,
AAA.PartyId
from VendTable
left join (select DirPartyAddressRelationship.partyId,
DirPartyAddressRelationship.recId
from DirPartyAddressRelationship
where DirPartyAddressRelationship.isPrimary = 1) AAA
on AAA.PartyId = VendTable.PartyId
expedted result in Grid are :
AccountNum | Name | PartyId |
---|---|---|
000001_046 | First Vendor | 000000003_172 |
000002_046 | Second record | 000000010_172 |
000003_046 | Third Vendor |
NULL |
Please advise thanks in advance.