I am in Python and I have the above 2 queries which I want to join them in 1.
def fly_away(session, line_id):
query = session.\
query(
Pilot.Id,
Pilot.EntityId,
Pilot.From
).\
filter(Pilot.Id == line_id)
query = session.\
query(
CTower.Id,
CTower.Time,
CTower.Associate
).\
filter(CTower.Associate == line_id)
I tried to use join but I dont know how to use it correctly. Can I have some help please?