このクエリを作成したい:
SELECT * FROM table_one INNER JOIN table_two ON
table_one.column_foreign_id = table_two.id WHERE table_two.column_one
<= table_two.column_two AND table_one.column_one = [param];
私は試した:
QueryBuilder<TableTwo, Integer> tableTwoQb = getTableTwoDao().queryBuilder();
tableTwoQb.selectColumns(TableTwo.COLUMN_ONE, TableTwo.COLUMN_TWO);
QueryBuilder<TableOne, Integer> tableOneQb = getTableOne().queryBuilder();
SelectArg columnOneSelectArg = new SelectArg();
tableOneQb.where().eq(TableOne.COLUMN_ONE, columnOneSelectArg);
tableOneQb.join(tableTwoQb);
WHERE
しかし、の 2 つの列の間を作成できませんtable_two
。
私が間違っていることは何ですか?