how do i convert the following mysql query to sqlalchemy?
SELECT * FROM `table_a` ta, `table_b` tb where 1
AND ta.id = tb.id
AND ta.id not in (select id from `table_c`)
so far i have this for sqlalchemy:
query = session.query(table_a, table_b)
query = query.filter(table_a.id == table_b.id)
in_(1,2,3).. I got: 'ColumnOperators.in_() takes 2 positional arguments but 4 were given', so I changed tobetween(1,3)instead and it worked.. In my scenario I had twoin_clauses within anand_clause too - not sure if that combo causes odd message in SQLAlchemy 1.4.41.in_requires an iterable, e.g.in_([1,2,3])