I am trying to join all fields on 3 tables. I’ve tried nearly 7 queries all of which either take forever to load up (really slow) or throw errors.
I need to join all 3 table on table1 id field. All tables have corresponding id fields.
This is my latest experiment: (throws errors for duplicate rows)
SELECT * FROM
(Select * FROM
table1 as T1 JOIN
table2 as T2 ON T1.dep_id=T2.dep_id WHERE 1) as T12
JOIN
table3 as T3 ON T12.dep_id=T3.dep_id WHERE 1
try (UPDATE as per comments from OP):