On Wed, Feb 28, 2018 at 6:14 PM, Mike Bayer <[email protected]> wrote: > > you want to LEFT OUTER JOIN on that LATERAL so you'd want to use > query.outerjoin, somthing like: > > from sqlalchemy import true > > session.query(...).outerjoin(event_include, > true()).filter(Room.company_id == company_id) > > Core is a little different but you can see the usage of join() in > http://docs.sqlalchemy.org/en/latest/core/tutorial.html#lateral-selects
Yup, that did it. I did try some variations on that, but obviously not the correct variations. Thank you! -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
