python - How to get the outer join data? -
there 3 tables.
a = class(base): __tablename__ = 'a' id = column(integer, primary_key=true) employee_number = column(string, nullable=false) b = class(base) __tablename__ = 'b' id = column(integer, primary_key=true) employee_number = column(string, nullable=false) work = column(integer, nullable=false) c = class(base) __tablename__ = 'c' id = column(integer, primary_key=true) employee_number = column(string, nullable=false) work = column(integer, nullable=false) d = query(b).union(query(c))
how ( outerjoin d on employee_number ) ? thank much!
Comments
Post a Comment