SQL to DQE - left outer join with 'and' possible?

Posts   
 
    
Sokon1
User
Posts: 97
Joined: 17-Jul-2006
# Posted on: 25-Aug-2006 14:00:45   

Hi, ist it possible to rewrite the following SQL snippet with the LLBL Gen objects? I couldn't find a possibility to add an AND/predicate to the LEFT OUTER JOIN/JoinHint


SELECt SA.str_Bezeichnung, SA2M.lngFK_berechtigung, SA2M.lngFK_Partner
FROM tbl_subapplikation SA
LEFT outer JOIN tbl_subappl2mitarbeiter SA2M
ON SA.lngPK_Subapplikation = SA2M.lngFK_Subapplikation 
AND SA2M.lngFK_Partner = 2704
WHERE SA.lngFK_Datei = 80

Thanks in advance!

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 25-Aug-2006 14:29:33   

I think IEntityRelation.CustomFilter should allow this, though I've never used it.

Sokon1
User
Posts: 97
Joined: 17-Jul-2006
# Posted on: 28-Aug-2006 13:10:16   

Thanks for your answer! Yes, this is what i've been looking for.