Ormlite Join Queries With Query Builder
Solution 1:
Please explain me other join methods using similar pictures?
I've spent a lot of time on the javadocs. They should be helpful. They explain what SQL is being used and that the "Or" part is.
join()
is the same as a SQLINNER JOIN
as stated in the javadocs. That matches your picture.joinOr()
is the same as a SQLINNER JOIN
but theWHERE
parts of the two queries are "OR'd" together as stated in the javadocs. Same picture as #1.leftJoin()
is the same as (wait for it) a SQLLEFT JOIN
as stated in the javadocs. That corresponds to adding A to the area in red. See your linked post and look forLEFT JOIN
.leftJoinOr()
is the same as a SQLLEFT JOIN
as well but theWHERE
parts of the two queries are "OR'd" together as stated in the javadocs. Same picture as #3.
Post a Comment for "Ormlite Join Queries With Query Builder"