Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlalchemy query join many to many

session.query(User).join((Group, User.groups)) 
    .join((Department, Group.departments)).filter(Department.name == 'R&D')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqlalchemy #query #join
ADD COMMENT
Topic
Name
4+7 =