My query selects multiple fields from 4 tables and I need to add OUTER JOIN or LEFT OUTER JOIN to compare values from another table.
SELECT *, table1.name, table2.wage, table3.shift, table4.vacation
FROM table1, table2, table3, table4 OUTER JOIN table5 ON table1.name = table5.position
WHERE table1.name = table2.name
AND table2.wage = table3.wage
This is just an example but how do I make it work, it seems to work if I have just one table in FROM clause.