2017-05-03 1 views

答えて

2

私は質問を理解したいと思う。

LogisticsElectronicAddressDirPartyLocationもRECIDによってテーブルによってRedcIdによってLogisticsLocation、及びDirPartyTableにLogisticsLocationに関連しています。

ので、HcmWorkerにinsered労働者は、RECIDと表DirPersonによってDirPartyTableに関連しています。

したがって、LogisticsElectronicAddressをお持ちの場合は、逆方向のアプローチが可能です。このコードのよう

ルック:

select LogisticsElectronicAddress 
    join LogisticsLocation 
    join DirPartyLocation 
    join DirPartyTable 
    join HcmWorker 
    join DirPerson // extended DirPartyTable 
where LogisticsLocation.RecId == LogisticsElectronicAddress.Location 
    && DirPartyLocation.Location == LogisticsLocation.RecId 
    && DirPartyTable.RecId == DirPartyLocation.Party 
    && DirPerson.RecId == DirPartyTable.RecId 
    && HcmWorker.Person == DirPerson.RecId; 

すべての関連表(関係、フィールド、値)を参照してください。 エイリアス/一意でない値を取得したり、条件を追加したりすることができます(「キーインデックス」を参照)。

お楽しみください!

関連する問題