Complex left joins

Complex left joins

Chandler242Chandler242 Posts: 36Questions: 12Answers: 0

Hello,

I understand that "Complex left joins" allows complex raw conditions but doesn't allow query parameters. On the other hand ".Where" method can do the same things only over multiple left-joins and accept parameters. My question is when there would be a need to use the "Complex left joins", particularly the SQL engine will optimize the queries anyway.

Thank you,

John Li

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    A sub-select on the join is the most common use case I'm aware of. Also multiple conditions for the join is something I've seen used a fair bit.

    In many cases you are right a WHERE statement would do, but not always, which is why we added that ability to the join statement.

    Allan

Sign In or Register to comment.