0
I want to create some JOIN in five tables like this example:
SELECT * FROM TableA AS TA
INNER JOIN TableB AS TB ON TA.Id = TB.IdTA
INNER JOIN TableC AS TC ON TB.IdTC = TC.Id
INNER JOIN TableD AS TD ON TC.Id = TD.IdTC
INNER JOIN TableE AS TE ON TD.IdTE = TE.Id
WHERE TE.Id = 30085
Note: Tableb and Tabled are tables N-M
I’m a little confused on how to do this on Android Ormlite, could someone help me with this query or provide me a step by step?
Primeiro:
, not put*
, that is, to discriminate between fields,Segundo:
if Tableb and Tabled there is a junction between them and if necessary place the intermediate table with two comparisonson
comparison andand
comparison . Note: it would be one of the ways maybe it depends a lot on what you want to compare !!!– user6026