left join where null

left join where null

montoyammontoyam Posts: 568Questions: 136Answers: 5

what is the correct syntax for when you want the right side to be null (no record).

I tried this but it didn't work:

.LeftJoin("FundOrgDeptGroup_Detail", "FundOrgDeptGroup_Detail.Org", "=", "FundOrgDeptGroup_Detail.Org")
.Where("FundOrgDeptGroup_Detail.Org", null)

Answers

  • montoyammontoyam Posts: 568Questions: 136Answers: 5

    oops.. nevermind. It does work, I just put the table on the left and right in the first line. my bad.

                        .LeftJoin("FundOrgDeptGroup_Detail", "FundOrgFTE_Import.Org", "=", "FundOrgDeptGroup_Detail.Org")
                        .Where("FundOrgDeptGroup_Detail.Org", null)
    
This discussion has been closed.