Is it possible to have two joins in a single query, where the second join is a connection between table_2 and table_3 (no key references in table_1)?
table_1
id | column_a
table_2
id | table_1_id | table_3_id | column_b
table_3
id | column_c
Existing Query:
SELECT * FROM table_1 RIGHT OUTER JOIN table_2 WHERE table_1.id id = ? and WHERE column_a = ?
Gives me the info I want from table_1 and table_2, but table_2's info will have just the table_3_id column.
In the same query, I'd like to join table_3 to get its data based on table_2.table_3_id