Get list of vendors that doesn't have any Party location relation.

Hi ALL,

I want get list of vendors from vend table which partyId is not available in DirPartyLocation Table.

kindly suggest

They are joined by PartyId, use a not exists join
while select AccountNum from vendTable
notexists join DirPartyLocation
where DirPartyLocation.PartyId == vendTable.PartyId
{
// do something
}

Please always tag your AX version.