Aqui, usando join : select A.id, A.name, B.property from table1 A left outer join table2 B on A.id=B.names_id