Skip to content
Advertisement

How to perform a left join in SQLALchemy?

I have a SQL query which perfroms a series of left joins on a few tables:

So far, I have:

but I can’t figure out how to make the join a LEFT JOIN.

Advertisement

Answer

The isouter=True flag will produce a LEFT OUTER JOIN which is the same as a LEFT JOIN.

With your code:

Declarative example:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement